Skip to main content

IntoAnyError

Trait IntoAnyError 

Source
pub trait IntoAnyError: Sized + Debug {
    // 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§

Source

fn into_any_error(self) -> AnyError

Available on crate feature std only.
Source

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

Available on crate feature std only.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoAnyError for Error

Source§

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

Available on crate feature std only.
Source§

impl IntoAnyError for Infallible

Implementors§