pub trait ContextualEventHandler<E, Context> {
    // Required method
    fn handle_event(&mut self, event: E, context: &mut Context);
}
Expand description

The trait that plugins should implement in order to handle the given type of events.

The type parameter E corresponds to the type of the event. The type parameter Context refers to the context that is passed to the event handler.

Required Methods§

source

fn handle_event(&mut self, event: E, context: &mut Context)

Implementors§