Skip to main content

ReceiveErrorCallback

Trait ReceiveErrorCallback 

Source
pub trait ReceiveErrorCallback<Error>: ConditionalSend + 'static {
    // Required method
    fn on_receive_error(&mut self, error: Error) -> ErrorHandlingStrategy;
}
Available on crate feature pipe only.
Expand description

Callback called when an error is encountered while trying to receive a message from the transport.

Required Methods§

Source

fn on_receive_error(&mut self, error: Error) -> ErrorHandlingStrategy

Handle receiving error.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Error> ReceiveErrorCallback<Error> for DefaultReceiveErrorCallback

Source§

impl<T, Error> ReceiveErrorCallback<Error> for T
where T: FnMut(Error) -> ErrorHandlingStrategy + ConditionalSend + 'static,