[−][src]Trait failure_ext::FutureFailureErrorExt
"Context" support for futures where the error is anyhow::Error.
Required methods
pub fn context<D>(self, context: D) -> ContextErrorFut<Self, D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
Add context to the error returned by this future
pub fn with_context<D, F>(self, f: F) -> WithContextErrorFut<Self, F> where
D: Display + Send + Sync + 'static,
F: FnOnce() -> D,
[src]
D: Display + Send + Sync + 'static,
F: FnOnce() -> D,
Add context created by provided function to the error returned by this future