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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".