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