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.