[−][src]Trait fehler_more::Context
Provides the context
method for Result
.
Required methods
fn context<C>(self, context: C) -> Result<T, Exception> where
C: 'static + Send + Sync + Display,
C: 'static + Send + Sync + Display,
Wrap the error value with additional context.
fn with_context<C, F>(self, f: F) -> Result<T, Exception> where
C: Display + Send + Sync + 'static,
F: FnOnce(&E) -> C,
C: Display + Send + Sync + 'static,
F: FnOnce(&E) -> C,
Wrap the error value with additional context lazily.
Implementations on Foreign Types
impl<T, E> Context<T, E> for Result<T, E> where
E: 'static + Error + Send + Sync,
[src]
E: 'static + Error + Send + Sync,
fn context<C>(self, context: C) -> Result<T, Exception> where
C: 'static + Send + Sync + Display,
[src]
C: 'static + Send + Sync + Display,
fn with_context<C, F>(self, f: F) -> Result<T, Exception> where
C: Display + Send + Sync + 'static,
F: FnOnce(&E) -> C,
[src]
C: Display + Send + Sync + 'static,
F: FnOnce(&E) -> C,
impl<T> Context<T, Exception> for Result<T, Exception>
[src]
fn context<C>(self, context: C) -> Result<T, Exception> where
C: 'static + Send + Sync + Display,
[src]
C: 'static + Send + Sync + Display,
fn with_context<C, F>(self, f: F) -> Result<T, Exception> where
C: Display + Send + Sync + 'static,
F: FnOnce(&Exception) -> C,
[src]
C: Display + Send + Sync + 'static,
F: FnOnce(&Exception) -> C,