Trait input_linux::GenericEvent[][src]

pub trait GenericEvent: AsRef<InputEvent> + AsRef<input_event> {
    fn event_kind(&self) -> EventKind;
fn time(&self) -> &EventTime;
fn code(&self) -> u16;
fn value(&self) -> i32;
fn from_ref(event: &InputEvent) -> Result<&Self, RangeError>;
fn from_mut(event: &mut InputEvent) -> Result<&mut Self, RangeError>; }
Expand description

A generic linux input event.

Required methods

The event kind.

The timestamp associated with the event.

The type code value of the event.

The value associated with the event.

Interprets a generic event reference into a concrete event type.

Interprets a mutable generic event reference into a concrete event type.

Implementors