UsbAllocatable

Trait UsbAllocatable 

Source
pub trait UsbAllocatable<'a, B: UsbBus> {
    type Allocated;

    // Required method
    fn allocate(self, usb_alloc: &'a UsbBusAllocator<B>) -> Self::Allocated;
}

Required Associated Types§

Required Methods§

Source

fn allocate(self, usb_alloc: &'a UsbBusAllocator<B>) -> Self::Allocated

Implementations on Foreign Types§

Source§

impl<'a, B, C, Tail> UsbAllocatable<'a, B> for HCons<C, Tail>
where B: UsbBus + 'a, C: UsbAllocatable<'a, B>, Tail: UsbAllocatable<'a, B>,

Source§

type Allocated = HCons<<C as UsbAllocatable<'a, B>>::Allocated, <Tail as UsbAllocatable<'a, B>>::Allocated>

Source§

fn allocate(self, usb_alloc: &'a UsbBusAllocator<B>) -> Self::Allocated

Source§

impl<'a, B: UsbBus + 'a> UsbAllocatable<'a, B> for HNil

Implementors§

Source§

impl<'a, B, I, O, R> UsbAllocatable<'a, B> for InterfaceConfig<'a, I, O, R>
where B: UsbBus + 'a, I: InSize, O: OutSize, R: ReportCount,

Source§

type Allocated = Interface<'a, B, I, O, R>

Source§

impl<'a, B, Report, I, O> UsbAllocatable<'a, B> for ManagedIdleInterfaceConfig<'a, Report, I, O>
where B: UsbBus + 'a, I: InSize, O: OutSize,

Source§

type Allocated = ManagedIdleInterface<'a, B, Report, I, O>

Source§

impl<'a, B: UsbBus + 'a> UsbAllocatable<'a, B> for ConsumerControlConfig<'a>

Source§

impl<'a, B: UsbBus + 'a> UsbAllocatable<'a, B> for ConsumerControlFixedConfig<'a>

Source§

impl<'a, B: UsbBus + 'a> UsbAllocatable<'a, B> for RawFidoConfig<'a>

Source§

impl<'a, B: UsbBus + 'a> UsbAllocatable<'a, B> for JoystickConfig<'a>

Source§

impl<'a, B: UsbBus + 'a> UsbAllocatable<'a, B> for BootKeyboardConfig<'a>

Source§

impl<'a, B: UsbBus + 'a> UsbAllocatable<'a, B> for NKROBootKeyboardConfig<'a>

Source§

impl<'a, B: UsbBus + 'a> UsbAllocatable<'a, B> for AbsoluteWheelMouseConfig<'a>

Source§

impl<'a, B: UsbBus + 'a> UsbAllocatable<'a, B> for BootMouseConfig<'a>

Source§

impl<'a, B: UsbBus + 'a> UsbAllocatable<'a, B> for WheelMouseConfig<'a>

Source§

impl<'a, B: UsbBus + 'a> UsbAllocatable<'a, B> for MultiaxisConfig<'a>