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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".