[][src]Struct sunrise_libuser::keyboard::HidKeyboardState

#[repr(C)]pub struct HidKeyboardState {
    pub data: u8,
    pub additional_data: u8,
    pub state_type: HidKeyboardStateType,
    pub modifiers: u8,
}

Define the state returned by read_keyboard_state.

Fields

data: u8

A key or a scancode

additional_data: u8

Additional data used for upper key when HidKeyboardStateType is ASCII.

state_type: HidKeyboardStateType

The type of the data before.

modifiers: u8

Keyboard modifiers

Mapping:

Trait Implementations

impl Clone for HidKeyboardState[src]

impl Copy for HidKeyboardState[src]

impl Debug for HidKeyboardState[src]

Auto Trait Implementations

impl RefUnwindSafe for HidKeyboardState

impl Send for HidKeyboardState

impl Sync for HidKeyboardState

impl Unpin for HidKeyboardState

impl UnwindSafe for HidKeyboardState

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.