pub enum Operation<'a, B>where
B: IntoIterator<Item = u8>,{
Read(&'a mut [u8]),
WriteIter(B),
}
Expand description
I2C operation.
Several operations can be combined as part of a transaction.
Variants§
Read(&'a mut [u8])
Read data into the provided buffer.
WriteIter(B)
Write data from the provided iterator.
Trait Implementations§
impl<'a, B> Eq for Operation<'a, B>
impl<'a, B> StructuralPartialEq for Operation<'a, B>where
B: IntoIterator<Item = u8>,
Auto Trait Implementations§
impl<'a, B> Freeze for Operation<'a, B>where
B: Freeze,
impl<'a, B> RefUnwindSafe for Operation<'a, B>where
B: RefUnwindSafe,
impl<'a, B> Send for Operation<'a, B>where
B: Send,
impl<'a, B> Sync for Operation<'a, B>where
B: Sync,
impl<'a, B> Unpin for Operation<'a, B>where
B: Unpin,
impl<'a, B> !UnwindSafe for Operation<'a, B>
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