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§
Sourcefn handle_error(&self, error: Error, tx: &SyncSender<Event<M>>)
fn handle_error(&self, error: Error, tx: &SyncSender<Event<M>>)
Handle an error that occurred during command execution