[][src]Trait bb8::ErrorSink

pub trait ErrorSink<E>: Debug + Send + Sync + 'static {
    fn sink(&self, error: E);
fn boxed_clone(&self) -> Box<dyn ErrorSink<E>>; }

A trait to receive errors generated by connection management that aren't tied to any particular caller.

Required methods

fn sink(&self, error: E)

Receive an error

fn boxed_clone(&self) -> Box<dyn ErrorSink<E>>

Clone this sink.

Loading content...

Implementors

impl<E> ErrorSink<E> for NopErrorSink[src]

Loading content...