Skip to main content

EventConsumer

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§