pub struct EventErrorHandler<M, F>{ /* private fields */ }Expand description
Error handler that converts errors to events
Implementations§
Trait Implementations§
Source§impl<M, F> ErrorHandler<M> for EventErrorHandler<M, F>
impl<M, F> ErrorHandler<M> for EventErrorHandler<M, F>
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, F> Freeze for EventErrorHandler<M, F>where
F: Freeze,
impl<M, F> RefUnwindSafe for EventErrorHandler<M, F>where
F: RefUnwindSafe,
impl<M, F> Send for EventErrorHandler<M, F>
impl<M, F> Sync for EventErrorHandler<M, F>
impl<M, F> Unpin for EventErrorHandler<M, F>where
F: Unpin,
impl<M, F> UnwindSafe for EventErrorHandler<M, F>where
F: UnwindSafe,
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