Trait IntoAnyError

Source
pub trait IntoAnyError: Debug + Sized {
    // Provided methods
    fn into_any_error(self) -> AnyError { ... }
    fn into_dyn_error(self) -> Result<Box<dyn Error + Send + Sync>, Self> { ... }
}
Expand description

Trait to convert a provider specific error into AnyError

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoAnyError for Infallible

Source§

impl IntoAnyError for Error

Source§

fn into_dyn_error(self) -> Result<Box<dyn Error + Send + Sync>, Self>

Implementors§