pub trait ErrorInfoContext<T, E> {
    // Required methods
    fn error_info<C>(self, context: C) -> Result<T, ErrorInfo>
       where C: Display + Send + Sync + 'static + Into<String>;
    fn error_msg<C>(self, code: Error, context: C) -> Result<T, ErrorInfo>
       where C: Display + Send + Sync + 'static + Into<String>;
}

Required Methods§

source

fn error_info<C>(self, context: C) -> Result<T, ErrorInfo>where C: Display + Send + Sync + 'static + Into<String>,

Wrap the error value with additional context.

source

fn error_msg<C>(self, code: Error, context: C) -> Result<T, ErrorInfo>where C: Display + Send + Sync + 'static + Into<String>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, E> ErrorInfoContext<T, E> for Result<T, E>where E: Error + Send + Sync + 'static,

source§

fn error_info<C>(self, context: C) -> Result<T, ErrorInfo>where C: Display + Send + Sync + 'static + Into<String>,

source§

fn error_msg<C>(self, code: Error, context: C) -> Result<T, ErrorInfo>where C: Display + Send + Sync + 'static + Into<String>,

Implementors§