Trait bb8::ErrorSink

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

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

Required Methods§

source

fn sink(&self, error: E)

Receive an error

source

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

Clone this sink.

Implementors§