Trait irc_bot::ErrorHandler [−][src]
pub trait ErrorHandler: Send + Sync + UnwindSafe + RefUnwindSafe + 'static { fn run(&self, _: Error) -> ErrorReaction; }
Required Methods
fn run(&self, _: Error) -> ErrorReaction
Handles an error.
The handler is given ownership of the error so that the handler can easily store the error somewhere if desired.
Implementors
impl<T> ErrorHandler for T where
T: Fn(Error) -> ErrorReaction + Send + Sync + UnwindSafe + RefUnwindSafe + 'static,