Trait DeviceEventListener

Source
pub trait DeviceEventListener: Send + Sync {
    // Required methods
    fn on_device_event(&self, event: &dyn DeviceEvent);
    fn interested_in(&self, event_type: &str) -> bool;
}
Expand description

Device event listener trait.

Devices that want to receive events must implement this trait.

Required Methods§

Source

fn on_device_event(&self, event: &dyn DeviceEvent)

Source

fn interested_in(&self, event_type: &str) -> bool

Implementors§