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>,

§

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

§

type Allocated = HNil

source§

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

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,

§

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,

§

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>

§

type Allocated = RawFido<'a, B>

source§

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

§

type Allocated = Joystick<'a, B>

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>

§

type Allocated = BootMouse<'a, B>

source§

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

§

type Allocated = WheelMouse<'a, B>