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>; }
Required Methods
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>
Implementors
impl GenericEvent for SynchronizeEvent
impl GenericEvent for KeyEvent
impl GenericEvent for RelativeEvent
impl GenericEvent for AbsoluteEvent
impl GenericEvent for SwitchEvent
impl GenericEvent for MiscEvent
impl GenericEvent for LedEvent
impl GenericEvent for AutorepeatEvent
impl GenericEvent for SoundEvent
impl GenericEvent for UInputEvent
impl GenericEvent for InputEvent