Trait ErrorContext

Source
pub trait ErrorContext {
    // Required methods
    fn make_inner(self) -> Self;
    fn msg<T: Into<String>>(self, msg: T) -> Self;
}
Expand description

The ErrorContext trait should be implemented for the context macro to work.

Required Methods§

Source

fn make_inner(self) -> Self

Source

fn msg<T: Into<String>>(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<O, E: ErrorContext> ErrorContext for Result<O, E>

Source§

fn make_inner(self) -> Self

Source§

fn msg<T: Into<String>>(self, msg: T) -> Self

Implementors§