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