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§
Sourcefn boxed_clone(&self) -> Box<dyn ErrorSink<E>>
fn boxed_clone(&self) -> Box<dyn ErrorSink<E>>
Clone this sink.