Trait EventHandler

Source
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.

Required Methods§

Source

fn on_event(&mut self, app: &mut ActiveApplication, event: Event)

Override this method to capture events.

§Parameters:
  • app - Active application.
  • event - Event.

Implementors§

Source§

impl<F> EventHandler for F
where F: FnMut(&mut ActiveApplication, Event),