Skip to main content

GenericEvent

Trait GenericEvent 

Source
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§

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

Implementors§