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§
Sourcefn into_switch_event(self) -> SwitchEventwhere
Self: Sized,
fn into_switch_event(self) -> SwitchEventwhere
Self: Sized,
Convert into a general SwitchEvent
again