pub struct State<'d, M = CriticalSectionRawMutex, D: DmaMode = Pio>where
M: SharedRawMutex,{ /* private fields */ }Expand description
Type-erased borrow of StateStorage passed to OtgInstance, Driver, Bus,
and on_interrupt.
Build from StateStorage::as_state.
Implementations§
Source§impl<M, D> State<'_, M, D>where
M: SharedRawMutex,
D: DmaMode,
impl<M, D> State<'_, M, D>where
M: SharedRawMutex,
D: DmaMode,
Sourcepub fn endpoint_count(&self) -> usize
pub fn endpoint_count(&self) -> usize
Returns the number of device endpoints supported by this state.
Trait Implementations§
Auto Trait Implementations§
impl<'d, M = CriticalSectionRawMutex, D = Pio> !RefUnwindSafe for State<'d, M, D>
impl<'d, M = CriticalSectionRawMutex, D = Pio> !UnwindSafe for State<'d, M, D>
impl<'d, M, D> Forget for State<'d, M, D>
impl<'d, M, D> Freeze for State<'d, M, D>
impl<'d, M, D> Move for State<'d, M, D>
impl<'d, M, D> Send for State<'d, M, D>
impl<'d, M, D> Sync for State<'d, M, D>
impl<'d, M, D> Unpin for State<'d, M, D>
impl<'d, M, D> UnsafeUnpin for State<'d, M, D>
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