pub struct Slave<I: Instance, State, ModeState> { /* private fields */ }Expand description
API for I2C slave mode
You can get access to this struct through the I2C struct.
This struct has two type parameters that track its state:
Statetracks whether the I2C instance is enabled.ModeStatetracks whether the master mode is enabled.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<I, State, ModeState> Freeze for Slave<I, State, ModeState>
impl<I, State, ModeState> RefUnwindSafe for Slave<I, State, ModeState>
impl<I, State, ModeState> Send for Slave<I, State, ModeState>
impl<I, State, ModeState> !Sync for Slave<I, State, ModeState>
impl<I, State, ModeState> Unpin for Slave<I, State, ModeState>
impl<I, State, ModeState> UnwindSafe for Slave<I, State, ModeState>
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