Trait devices::utils::event_loop::EventHandler
source · pub trait EventHandler: Send + Sync {
// Required method
fn on_event(&self) -> Result<()>;
}
Expand description
Interface for event handler.
pub trait EventHandler: Send + Sync {
// Required method
fn on_event(&self) -> Result<()>;
}
Interface for event handler.