pub trait SwitchEventTrait: AsRaw<libinput_event_switch> + Context {
    // Provided methods
    fn time(&self) -> u32 { ... }
    fn time_usec(&self) -> u64 { ... }
    fn into_switch_event(self) -> SwitchEvent
       where Self: Sized { ... }
}
Expand description

Common functions all Switch-Events implement.

Provided Methods§

source

fn time(&self) -> u32

The event time for this event

source

fn time_usec(&self) -> u64

The event time for this event in microseconds

source

fn into_switch_event(self) -> SwitchEvent
where Self: Sized,

Convert into a general SwitchEvent again

Implementors§