[][src]Struct keyberon::keyboard::Keyboard

pub struct Keyboard<L> { /* fields omitted */ }

A keyboard HID device.

Implementations

impl<L> Keyboard<L>[src]

pub fn new(leds: L) -> Keyboard<L>[src]

Creates a new Keyboard object.

pub fn set_keyboard_report(&mut self, report: KbHidReport) -> bool[src]

Set the current keyboard HID report. Returns true if it is modified.

Trait Implementations

impl<L: Leds> HidDevice for Keyboard<L>[src]

Auto Trait Implementations

impl<L> Send for Keyboard<L> where
    L: Send

impl<L> Sync for Keyboard<L> where
    L: Sync

impl<L> Unpin for Keyboard<L> where
    L: Unpin

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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