pub struct Driver<'d, V: VbusDetect> { /* private fields */ }Expand description
USB driver.
Implementations§
Trait Implementations§
Source§impl<'d, V: VbusDetect + 'd> Driver<'d> for Driver<'d, V>
impl<'d, V: VbusDetect + 'd> Driver<'d> for Driver<'d, V>
Source§type EndpointOut = Endpoint<'d, Out>
type EndpointOut = Endpoint<'d, Out>
Type of the OUT endpoints for this driver.
Source§type EndpointIn = Endpoint<'d, In>
type EndpointIn = Endpoint<'d, In>
Type of the IN endpoints for this driver.
Source§type ControlPipe = ControlPipe<'d>
type ControlPipe = ControlPipe<'d>
Type of the control pipe for this driver.
Source§fn alloc_endpoint_in(
&mut self,
config: &EndpointConfig,
) -> Result<Self::EndpointIn, EndpointAllocError>
fn alloc_endpoint_in( &mut self, config: &EndpointConfig, ) -> Result<Self::EndpointIn, EndpointAllocError>
Allocates an IN endpoint. Read more
Source§fn alloc_endpoint_out(
&mut self,
config: &EndpointConfig,
) -> Result<Self::EndpointOut, EndpointAllocError>
fn alloc_endpoint_out( &mut self, config: &EndpointConfig, ) -> Result<Self::EndpointOut, EndpointAllocError>
Allocates an OUT endpoint. Read more
Auto Trait Implementations§
impl<'d, V> Freeze for Driver<'d, V>where
V: Freeze,
impl<'d, V> RefUnwindSafe for Driver<'d, V>where
V: RefUnwindSafe,
impl<'d, V> Send for Driver<'d, V>where
V: Send,
impl<'d, V> Sync for Driver<'d, V>where
V: Sync,
impl<'d, V> Unpin for Driver<'d, V>where
V: Unpin,
impl<'d, V> UnsafeUnpin for Driver<'d, V>where
V: UnsafeUnpin,
impl<'d, V> UnwindSafe for Driver<'d, V>where
V: 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