pub struct StateStorage<const EP_COUNT: usize, M = CriticalSectionRawMutex>{ /* private fields */ }Expand description
Storage object for USB OTG driver state.
Implementations§
Source§impl<const EP_COUNT: usize, M> StateStorage<EP_COUNT, M>
impl<const EP_COUNT: usize, M> StateStorage<EP_COUNT, M>
Sourcepub fn as_state(&self) -> State<'_, M>
pub fn as_state(&self) -> State<'_, M>
Borrow this StateStorage as a State for OtgInstance and the Synopsys Driver.
Auto Trait Implementations§
impl<const EP_COUNT: usize, M = CriticalSectionRawMutex> !Freeze for StateStorage<EP_COUNT, M>
impl<const EP_COUNT: usize, M = CriticalSectionRawMutex> !RefUnwindSafe for StateStorage<EP_COUNT, M>
impl<const EP_COUNT: usize, M> Send for StateStorage<EP_COUNT, M>where
M: Send,
impl<const EP_COUNT: usize, M> Sync for StateStorage<EP_COUNT, M>where
M: Sync,
impl<const EP_COUNT: usize, M> Unpin for StateStorage<EP_COUNT, M>where
M: Unpin,
impl<const EP_COUNT: usize, M> UnsafeUnpin for StateStorage<EP_COUNT, M>where
M: UnsafeUnpin,
impl<const EP_COUNT: usize, M> UnwindSafe for StateStorage<EP_COUNT, M>where
M: UnwindSafe,
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