pub enum Direction {
Write,
Read,
}Expand description
Whether an I2C transfer reads from or writes to the device.
The direction rides in the least-significant bit of the address byte: 0 for a write,
1 for a read.
Variants§
Write
The controller writes to the device. R/W bit 0.
Read
The controller reads from the device. R/W bit 1.
Implementations§
Trait Implementations§
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnsafeUnpin for Direction
impl UnwindSafe for Direction
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