Trait EventConsumer

Source
pub trait EventConsumer {
    // Required method
    fn handle_event(&mut self, event: &AppEvent) -> bool;
}
Expand description

Trait for components that can consume events

Required Methods§

Source

fn handle_event(&mut self, event: &AppEvent) -> bool

Handle an event, returning true if the event was consumed

Implementors§