[][src]Trait input_linux::GenericEvent

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>; }

A generic linux input event.

Required methods

fn event_kind(&self) -> EventKind

The event kind.

fn time(&self) -> &EventTime

The timestamp associated with the event.

fn code(&self) -> u16

The type code value of the event.

fn value(&self) -> i32

The value associated with the event.

fn from_ref(event: &InputEvent) -> Result<&Self, RangeError>

Interprets a generic event reference into a concrete event type.

fn from_mut(event: &mut InputEvent) -> Result<&mut Self, RangeError>

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

Loading content...

Implementors

impl GenericEvent for AbsoluteEvent[src]

impl GenericEvent for AutorepeatEvent[src]

impl GenericEvent for InputEvent[src]

impl GenericEvent for KeyEvent[src]

impl GenericEvent for LedEvent[src]

impl GenericEvent for MiscEvent[src]

impl GenericEvent for RelativeEvent[src]

impl GenericEvent for SoundEvent[src]

impl GenericEvent for SwitchEvent[src]

impl GenericEvent for SynchronizeEvent[src]

impl GenericEvent for UInputEvent[src]

Loading content...