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§
Sourcefn on_receive_error(&mut self, error: Error) -> ErrorHandlingStrategy
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".