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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.