pub struct State<'d, M = CriticalSectionRawMutex>{ /* private fields */ }Expand description
Type-erased borrow of State passed to OtgInstance, Driver, Bus,
and on_interrupt.
Build from [State::as_state].
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'d, M = CriticalSectionRawMutex> !RefUnwindSafe for State<'d, M>
impl<'d, M = CriticalSectionRawMutex> !UnwindSafe for State<'d, M>
impl<'d, M> Freeze for State<'d, M>where
M: Freeze,
impl<'d, M> Send for State<'d, M>where
M: Send,
impl<'d, M> Sync for State<'d, M>where
M: Sync,
impl<'d, M> Unpin for State<'d, M>where
M: Unpin,
impl<'d, M> UnsafeUnpin for State<'d, M>where
M: UnsafeUnpin,
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