Skip to main content

OnError

Type Alias OnError 

Source
pub type OnError = Box<dyn Fn(&Subscription, &Event) + Send + Sync + 'static>;
Expand description

Boxed error callback, invoked once per handler that panics during EventBus::emit.

Aliased Typeยง

pub struct OnError(/* private fields */);