Trait failure_ext::FutureErrorContext
source · pub trait FutureErrorContext: Future + Sized {
// Required methods
fn context<D>(self, context: D) -> ContextFut<Self, D>
where D: Display + Send + Sync + 'static;
fn with_context<D, F>(self, f: F) -> WithContextFut<Self, F>
where D: Display + Send + Sync + 'static,
F: FnOnce() -> D;
}
Expand description
“Context” support for futures.
Required Methods§
Object Safety§
This trait is not object safe.