[−][src]Trait failure_ext::FutureFailureExt
"Context" support for futures where the error is an implementation of std::error::Error.
Required methods
pub fn context<D>(self, context: D) -> ContextFut<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) -> WithContextFut<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
Implementors
impl<F> FutureFailureExt for F where
F: Future + Sized,
F::Error: StdError + Send + Sync + 'static,
[src]
F: Future + Sized,
F::Error: StdError + Send + Sync + 'static,