[][src]Struct bootkbd::BootKeyboard

pub struct BootKeyboard<F> { /* fields omitted */ }

Boot protocol keyboard driver for USB hosts.

Methods

impl<F> BootKeyboard<F> where
    F: FnMut(u8, &[u8]), 
[src]

pub fn new(callback: F) -> Self[src]

Create a new driver instance which will call callback(address: u8, buffer: &[u8]) when a new keyboard report is received.

address is the address of the USB device which received the report and buffer is the contents of the report itself.

Trait Implementations

impl<F> Debug for BootKeyboard<F>[src]

impl<F> Driver for BootKeyboard<F> where
    F: FnMut(u8, &[u8]), 
[src]

Auto Trait Implementations

impl<F> Unpin for BootKeyboard<F> where
    F: Unpin

impl<F> Sync for BootKeyboard<F> where
    F: Sync

impl<F> Send for BootKeyboard<F> where
    F: Send

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]