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

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§