[][src]Trait error_context::ResultErrorWhileWrap

pub trait ResultErrorWhileWrap<O, E, C> {
    fn wrap_error_while(self, context: C) -> Result<O, ErrorContext<E, C>>;
fn wrap_error_while_with<F>(
        self,
        context: F
    ) -> Result<O, ErrorContext<E, C>>
    where
        F: FnOnce() -> C
; }

Result extension trait to wrap error value in ErrorContext with given context information

Required methods

fn wrap_error_while(self, context: C) -> Result<O, ErrorContext<E, C>>

fn wrap_error_while_with<F>(self, context: F) -> Result<O, ErrorContext<E, C>> where
    F: FnOnce() -> C, 

Loading content...

Implementations on Foreign Types

impl<O, E, C> ResultErrorWhileWrap<O, E, C> for Result<O, E> where
    E: WrapContext<C, ContextError = ErrorContext<E, C>>, 
[src]

Loading content...

Implementors

Loading content...