pub trait EventHandler<S, A, Id: ComponentId, Ctx: BindingContext>: 'static {
// Required method
fn handle(
&mut self,
event: RoutedEvent<'_, Id, Ctx>,
state: &S,
) -> HandlerResponse<A>;
}Expand description
Trait for event handlers registered with the bus.