Trait r2d2::HandleError [−][src]
pub trait HandleError<E>: Debug + Send + Sync + 'static { fn handle_error(&self, error: E); }
A trait which handles errors reported by the ManageConnection
.
Required Methods
fn handle_error(&self, error: E)
Handles an error.
Implementors
impl<E> HandleError<E> for NopErrorHandler
impl<E> HandleError<E> for LoggingErrorHandler where
E: Error,