pub trait GenericEvent{
// Required methods
fn is_real(&self) -> bool;
fn is_synthetic(&self) -> bool;
fn time(&self) -> u32;
fn value(&self) -> i16;
}Expand description
Trait common to all events
Required Methods§
Sourcefn is_synthetic(&self) -> bool
fn is_synthetic(&self) -> bool
Returns true if the event is synthetic
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.