[][src]Struct keyberon::key_code::KbHidReport

pub struct KbHidReport(_);

A standard keyboard USB HID report.

It can handle any modifier and 6 keys.

Implementations

impl KbHidReport[src]

pub fn as_bytes(&self) -> &[u8][src]

Returns the byte slice corresponding to the report.

pub fn pressed(&mut self, kc: KeyCode)[src]

Add the given key code to the report. If the report is full, it will be setted to ErrorRollOver.

Trait Implementations

impl Clone for KbHidReport[src]

impl Debug for KbHidReport[src]

impl Default for KbHidReport[src]

impl Eq for KbHidReport[src]

impl FromIterator<KeyCode> for KbHidReport[src]

impl PartialEq<KbHidReport> for KbHidReport[src]

impl StructuralEq for KbHidReport[src]

impl StructuralPartialEq for KbHidReport[src]

Auto Trait Implementations

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.