Trait input::event::switch::SwitchEventTrait
[−]
[src]
pub trait SwitchEventTrait: AsRaw<libinput_event_switch> {
fn time(&self) -> u32 { ... }
fn time_usec(&self) -> u64 { ... }
fn into_switch_event(self) -> SwitchEvent where Self: Sized { ... }
}Common functions all Switch-Events implement.
Provided Methods
fn time(&self) -> u32
The event time for this event
fn time_usec(&self) -> u64
The event time for this event in microseconds
fn into_switch_event(self) -> SwitchEvent where Self: Sized
Convert into a general SwitchEvent again
Implementors
impl<T: AsRaw<libinput_event_switch>> SwitchEventTrait for T