[][src]Trait input_linux::GenericEvent

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

A generic linux input event.

Required methods

pub fn event_kind(&self) -> EventKind[src]

The event kind.

pub fn time(&self) -> &EventTime[src]

The timestamp associated with the event.

pub fn code(&self) -> u16[src]

The type code value of the event.

pub fn value(&self) -> i32[src]

The value associated with the event.

pub fn from_ref(event: &InputEvent) -> Result<&Self, RangeError>[src]

Interprets a generic event reference into a concrete event type.

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

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...