pub struct CompositeErrorHandler<M> { /* private fields */ }Expand description
Error handler that combines logging and event generation
Implementations§
Source§impl<M> CompositeErrorHandler<M>
impl<M> CompositeErrorHandler<M>
Sourcepub fn add_handler(self, handler: Box<dyn ErrorHandler<M>>) -> Self
pub fn add_handler(self, handler: Box<dyn ErrorHandler<M>>) -> Self
Add an error handler to the composite
Trait Implementations§
Source§impl<M> Default for CompositeErrorHandler<M>
impl<M> Default for CompositeErrorHandler<M>
Source§impl<M> ErrorHandler<M> for CompositeErrorHandler<M>
impl<M> ErrorHandler<M> for CompositeErrorHandler<M>
Source§fn 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
Auto Trait Implementations§
impl<M> Freeze for CompositeErrorHandler<M>
impl<M> !RefUnwindSafe for CompositeErrorHandler<M>
impl<M> Send for CompositeErrorHandler<M>
impl<M> Sync for CompositeErrorHandler<M>
impl<M> Unpin for CompositeErrorHandler<M>
impl<M> !UnwindSafe for CompositeErrorHandler<M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter