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 SynchronizeEventimpl GenericEvent for KeyEventimpl GenericEvent for RelativeEventimpl GenericEvent for AbsoluteEventimpl GenericEvent for SwitchEventimpl GenericEvent for MiscEventimpl GenericEvent for LedEventimpl GenericEvent for AutorepeatEventimpl GenericEvent for SoundEventimpl GenericEvent for UInputEventimpl GenericEvent for InputEvent