[][src]Struct sunrise_keyboard::ps2::KeyEvent

struct KeyEvent {
    key: Key,
    state: State,
}

A KeyEvent is the combination of a key and its state

Fields

key: Keystate: State

Implementations

impl KeyEvent[src]

fn read_key_event(input: &[u8]) -> Option<KeyEvent>[src]

Reads one or more bytes from an input buffer until it matches a known scancode sequence

Auto Trait Implementations

impl RefUnwindSafe for KeyEvent

impl Send for KeyEvent

impl Sync for KeyEvent

impl Unpin for KeyEvent

impl UnwindSafe for KeyEvent

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> SizedIPCBuffer for T[src]

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.