[−][src]Trait error_context::ResultErrorWhileWrap
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,
F: FnOnce() -> C,
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]
E: WrapContext<C, ContextError = ErrorContext<E, C>>,
fn wrap_error_while(self, context: C) -> Result<O, ErrorContext<E, C>>[src]
fn wrap_error_while_with<F>(self, context: F) -> Result<O, ErrorContext<E, C>> where
F: FnOnce() -> C, [src]
F: FnOnce() -> C,