Trait ErrorExt

Source
pub trait ErrorExt {
    // Required methods
    fn wrap(self) -> Error;
    fn context<C: Display + Send + Sync + 'static>(self, ctx: C) -> Error;
}

Required Methods§

Source

fn wrap(self) -> Error

Source

fn context<C: Display + Send + Sync + 'static>(self, ctx: C) -> Error

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.

Implementors§

Source§

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