Trait DeviceEvent

Source
pub trait DeviceEvent: Send + Sync {
    // Required methods
    fn event_type(&self) -> &'static str;
    fn as_any(&self) -> &dyn Any;
}
Expand description

Generic device event trait.

All device events must implement this trait to be handled by the event system.

Required Methods§

Source

fn event_type(&self) -> &'static str

Source

fn as_any(&self) -> &dyn Any

Implementors§