ErrorHandler

Trait ErrorHandler 

Source
pub trait ErrorHandler<M>: Send + Sync {
    // Required method
    fn handle_error(&self, error: Error, tx: &SyncSender<Event<M>>);
}
Expand description

Trait for custom error handling strategies

Required Methods§

Source

fn handle_error(&self, error: Error, tx: &SyncSender<Event<M>>)

Handle an error that occurred during command execution

Implementors§

Source§

impl<M> ErrorHandler<M> for CompositeErrorHandler<M>

Source§

impl<M> ErrorHandler<M> for DefaultErrorHandler

Source§

impl<M, F> ErrorHandler<M> for EventErrorHandler<M, F>
where M: Clone + Send + 'static, F: Fn(Error) -> M + Send + Sync,