#[repr(u8)]pub enum Busstateselect {
Unknown = 0,
Idle = 1,
Owner = 2,
Busy = 3,
}
Expand description
Bus State
Value on reset: 0
Variants§
Unknown = 0
0: The Bus state is unknown to the I2C Host
Idle = 1
1: The Bus state is waiting for a transaction to be initialized
Owner = 2
2: The I2C Host is the current owner of the bus
Busy = 3
3: Some other I2C Host owns the bus
Trait Implementations§
Source§impl Clone for Busstateselect
impl Clone for Busstateselect
Source§fn clone(&self) -> Busstateselect
fn clone(&self) -> Busstateselect
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 Busstateselect
impl Debug for Busstateselect
Source§impl From<Busstateselect> for u8
impl From<Busstateselect> for u8
Source§fn from(variant: Busstateselect) -> Self
fn from(variant: Busstateselect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Busstateselect
impl PartialEq for Busstateselect
impl Copy for Busstateselect
impl Eq for Busstateselect
impl IsEnum for Busstateselect
impl StructuralPartialEq for Busstateselect
Auto Trait Implementations§
impl Freeze for Busstateselect
impl RefUnwindSafe for Busstateselect
impl Send for Busstateselect
impl Sync for Busstateselect
impl Unpin for Busstateselect
impl UnwindSafe for Busstateselect
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