Trait GenericEvent

Source
pub trait GenericEvent
where Self: Clone + Copy + Debug + Eq + Hash + PartialEq,
{ // 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§

Source

fn is_real(&self) -> bool

Returns true if the event is real

Source

fn is_synthetic(&self) -> bool

Returns true if the event is synthetic

Source

fn time(&self) -> u32

Returns the event’s timestamp

Source

fn value(&self) -> i16

Returns the event’s value

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.

Implementors§