pub trait EventConsumer {
// Required method
fn handle_event(&mut self, event: &AppEvent) -> bool;
}Expand description
Trait for components that can consume events
Required Methods§
Sourcefn handle_event(&mut self, event: &AppEvent) -> bool
fn handle_event(&mut self, event: &AppEvent) -> bool
Handle an event, returning true if the event was consumed
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".