Skip to main content

IntoError

Trait IntoError 

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§

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§

§

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