AddContext

Trait AddContext 

Source
pub trait AddContext<T, E>: Context<T, E> {
    // Provided method
    fn err_context<C: Display + Send + Sync + 'static>(
        self,
        msg: C,
    ) -> Result<T, Error>
       where Self: Sized { ... }
}

Provided Methods§

Source

fn err_context<C: Display + Send + Sync + 'static>( self, msg: C, ) -> Result<T, Error>
where Self: Sized,

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<U, T, E> AddContext<T, E> for U
where U: Context<T, E>,