Skip to main content

IntoError

Trait IntoError 

Source
pub trait IntoError: Send + Sync {
    // Required method
    fn into_error(self) -> Error;
}
Expand description

IntoError trait allows conversion of various error types into Jetstream Error.

Required Methods§

Source

fn into_error(self) -> Error

Converts the error into a Jetstream Error.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Error + Send + Sync> IntoError for T