EventHandler

Trait EventHandler 

Source
pub trait EventHandler<E: Event> {
    // Required method
    fn handle(&mut self, event: E);
}
Expand description

A handler for application events.

Required Methods§

Source

fn handle(&mut self, event: E)

Handles an event.

Implementors§

Source§

impl<E, F> EventHandler<E> for F
where E: Event, F: FnMut(E),