pub struct Allocator<'d, T: Instance> { /* private fields */ }Expand description
Pipe allocator handle for Driver.
Trait Implementations§
impl<'d, T: Instance> Copy for Allocator<'d, T>
Source§impl<'d, T: SealedHostInstance> UsbHostAllocator<'d> for Allocator<'d, T>
impl<'d, T: SealedHostInstance> UsbHostAllocator<'d> for Allocator<'d, T>
Source§type Pipe<E: Type, D: Direction> = Channel<'d, T, E, D>
type Pipe<E: Type, D: Direction> = Channel<'d, T, E, D>
Pipe implementation produced by this allocator.
Source§fn alloc_pipe<E: Type, D: Direction>(
&self,
dev_addr: u8,
endpoint: &EndpointInfo,
split: Option<SplitInfo>,
) -> Result<Self::Pipe<E, D>, HostError>
fn alloc_pipe<E: Type, D: Direction>( &self, dev_addr: u8, endpoint: &EndpointInfo, split: Option<SplitInfo>, ) -> Result<Self::Pipe<E, 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, T> Freeze for Allocator<'d, T>
impl<'d, T> RefUnwindSafe for Allocator<'d, T>
impl<'d, T> Send for Allocator<'d, T>
impl<'d, T> Sync for Allocator<'d, T>
impl<'d, T> Unpin for Allocator<'d, T>
impl<'d, T> UnsafeUnpin for Allocator<'d, T>
impl<'d, T> UnwindSafe for Allocator<'d, T>
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