Trait ErrorExt

Source
pub trait ErrorExt {
    // Required method
    fn ctx<D>(self, context: D) -> Context<D>;
}

Required Methods§

Source

fn ctx<D>(self, context: D) -> Context<D>

Construct a Context wrapping this 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<T: Into<Box<dyn Error + Send + Sync>>> ErrorExt for T