Skip to main content

ErrorExt

Trait ErrorExt 

Source
pub trait ErrorExt:
    Error
    + Sized
    + Send
    + 'static {
    // Provided methods
    fn with_message(self, message: impl Display) -> DynError { ... }
    fn into_dyn_error(self) -> DynError { ... }
}

Provided Methods§

Source

fn with_message(self, message: impl Display) -> DynError

Source

fn into_dyn_error(self) -> DynError

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<E: Error + Send + Sized + 'static> ErrorExt for E