pub trait EventHandler {
// Required method
fn on_event(&mut self, app: &mut ActiveApplication, event: Event);
}
Expand description
Event handler.
Implement this trait to capture events.
pub trait EventHandler {
// Required method
fn on_event(&mut self, app: &mut ActiveApplication, event: Event);
}
Event handler.
Implement this trait to capture events.