pub struct KbdHandler<H: UsbHostDriver> { /* private fields */ }Expand description
Host-side HID boot-keyboard driver.
Implementations§
Source§impl<H: UsbHostDriver> KbdHandler<H>
impl<H: UsbHostDriver> KbdHandler<H>
Trait Implementations§
Source§impl<H: UsbHostDriver> UsbHostHandler for KbdHandler<H>
impl<H: UsbHostDriver> UsbHostHandler for KbdHandler<H>
type PollEvent = KbdEvent
type Driver = H
fn static_spec() -> StaticHandlerSpec
async fn try_register( bus: &H, enum_info: &EnumerationInfo, ) -> Result<Self, RegisterError>
async fn wait_for_event( &mut self, ) -> Result<HandlerEvent<Self::PollEvent>, HostError>
Auto Trait Implementations§
impl<H> Freeze for KbdHandler<H>where
<H as UsbHostDriver>::Channel<Interrupt, In>: Freeze,
<H as UsbHostDriver>::Channel<Control, InOut>: Freeze,
impl<H> RefUnwindSafe for KbdHandler<H>where
<H as UsbHostDriver>::Channel<Interrupt, In>: RefUnwindSafe,
<H as UsbHostDriver>::Channel<Control, InOut>: RefUnwindSafe,
impl<H> Send for KbdHandler<H>where
<H as UsbHostDriver>::Channel<Interrupt, In>: Send,
<H as UsbHostDriver>::Channel<Control, InOut>: Send,
impl<H> Sync for KbdHandler<H>where
<H as UsbHostDriver>::Channel<Interrupt, In>: Sync,
<H as UsbHostDriver>::Channel<Control, InOut>: Sync,
impl<H> Unpin for KbdHandler<H>where
<H as UsbHostDriver>::Channel<Interrupt, In>: Unpin,
<H as UsbHostDriver>::Channel<Control, InOut>: Unpin,
impl<H> UnwindSafe for KbdHandler<H>where
<H as UsbHostDriver>::Channel<Interrupt, In>: UnwindSafe,
<H as UsbHostDriver>::Channel<Control, InOut>: 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