Skip to main content

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".

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§