[][src]Trait eyre::ContextExt

pub trait ContextExt<T, E>: Sealed {
    fn note<C>(self, context: C) -> Result<T>
    where
        C: ContextObj
;
fn with_note<C, F>(self, f: F) -> Result<T>
    where
        C: ContextObj,
        F: FnOnce() -> C
; }

Required methods

fn note<C>(self, context: C) -> Result<T> where
    C: ContextObj, 

Wrap the error value with additional context.

fn with_note<C, F>(self, f: F) -> Result<T> where
    C: ContextObj,
    F: FnOnce() -> C, 

Wrap the error value with additional context that is evaluated lazily only once an error does occur.

Loading content...

Implementations on Foreign Types

impl<T, E> ContextExt<T, E> for Result<T, E> where
    E: IntoErrorReporter<BoxError, RootCauseFirst, ContextObject> + Send + Sync + 'static, 
[src]

Loading content...

Implementors

Loading content...