pub struct Allocator<'d, I: Instance> { /* private fields */ }Expand description
Pipe allocator handle for UsbHost.
Trait Implementations§
impl<'d, I: Instance> Copy for Allocator<'d, I>
Source§impl<'d, I: SealedHostInstance> UsbHostAllocator<'d> for Allocator<'d, I>
impl<'d, I: SealedHostInstance> UsbHostAllocator<'d> for Allocator<'d, I>
Source§type Pipe<T: Type, D: Direction> = Channel<'d, I, D, T>
type Pipe<T: Type, D: Direction> = Channel<'d, I, D, T>
Pipe implementation produced by this allocator.
Source§fn alloc_pipe<T: Type, D: Direction>(
&self,
addr: u8,
endpoint: &EndpointInfo,
_split: Option<SplitInfo>,
) -> Result<Self::Pipe<T, D>, HostError>
fn alloc_pipe<T: Type, D: Direction>( &self, addr: u8, endpoint: &EndpointInfo, _split: Option<SplitInfo>, ) -> Result<Self::Pipe<T, D>, HostError>
Allocate a pipe for communication with a device endpoint. Read more
Source§fn device_removed(&self, _addrs: AddressSet)
fn device_removed(&self, _addrs: AddressSet)
Called when the devices in
addrs are removed. Read moreAuto Trait Implementations§
impl<'d, I> Freeze for Allocator<'d, I>
impl<'d, I> RefUnwindSafe for Allocator<'d, I>
impl<'d, I> Send for Allocator<'d, I>
impl<'d, I> Sync for Allocator<'d, I>
impl<'d, I> Unpin for Allocator<'d, I>
impl<'d, I> UnsafeUnpin for Allocator<'d, I>
impl<'d, I> UnwindSafe for Allocator<'d, I>
Blanket Implementations§
impl<T, I> Binding<I, NoHandler<I>> for T
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