ErrorContext

Trait ErrorContext 

Source
pub trait ErrorContext<T: Display> {
    // Required method
    fn context(self, msg: T) -> Self;
}

Required Methods§

Source

fn context(self, msg: T) -> Self

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.

Implementations on Foreign Types§

Source§

impl<T, M> ErrorContext<M> for Result<T, DecodeError>
where M: Display,

Source§

fn context(self, msg: M) -> Result<T, DecodeError>

Implementors§