pub enum State<'r, I: Instance> {
AddressMatched(AddressMatched<'r, I>),
RxReady(RxReady<'r, I>),
TxReady(TxReady<'r, I>),
}Expand description
The current state of the slave
Each variant provides an API to react to that state. Call I2C::wait to
get an instance of this struct.
Variants§
AddressMatched(AddressMatched<'r, I>)
Address sent by master has been matched
RxReady(RxReady<'r, I>)
Data has been received from master
TxReady(TxReady<'r, I>)
Ready to transmit data to master
Auto Trait Implementations§
impl<'r, I> Freeze for State<'r, I>
impl<'r, I> RefUnwindSafe for State<'r, I>where
I: RefUnwindSafe,
impl<'r, I> !Send for State<'r, I>
impl<'r, I> !Sync for State<'r, I>
impl<'r, I> Unpin for State<'r, I>
impl<'r, I> UnwindSafe for State<'r, I>where
I: RefUnwindSafe,
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