#[repr(u32)]pub enum i2c_device_state_t {
I2C_idle = 0,
I2C_master_transmit = 1,
I2C_master_receive = 2,
I2C_slave_transmit = 3,
I2C_slave_receive = 4,
I2C_max_states = 5,
}
Variants§
I2C_idle = 0
I2C_master_transmit = 1
I2C_master_receive = 2
I2C_slave_transmit = 3
I2C_slave_receive = 4
I2C_max_states = 5
Trait Implementations§
source§impl Clone for i2c_device_state
impl Clone for i2c_device_state
source§fn clone(&self) -> i2c_device_state
fn clone(&self) -> i2c_device_state
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for i2c_device_state
impl Debug for i2c_device_state
source§impl Hash for i2c_device_state
impl Hash for i2c_device_state
source§impl Ord for i2c_device_state
impl Ord for i2c_device_state
source§fn cmp(&self, other: &i2c_device_state) -> Ordering
fn cmp(&self, other: &i2c_device_state) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for i2c_device_state
impl PartialEq for i2c_device_state
source§impl PartialOrd for i2c_device_state
impl PartialOrd for i2c_device_state
impl Copy for i2c_device_state
impl Eq for i2c_device_state
impl StructuralPartialEq for i2c_device_state
Auto Trait Implementations§
impl Freeze for i2c_device_state
impl RefUnwindSafe for i2c_device_state
impl Send for i2c_device_state
impl Sync for i2c_device_state
impl Unpin for i2c_device_state
impl UnwindSafe for i2c_device_state
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)