pub trait FutureExt: Future + Sized {
fn attach<A>(self, attachment: A) -> FutureWithAttachment<Self, A> ⓘ
where
A: Send + Sync + 'static;
fn attach_lazy<A, F>(
self,
attachment: F
) -> FutureWithLazyAttachment<Self, F> ⓘ
where
A: Send + Sync + 'static,
F: FnOnce() -> A;
fn attach_printable<A>(
self,
attachment: A
) -> FutureWithPrintableAttachment<Self, A> ⓘ
where
A: Display + Debug + Send + Sync + 'static;
fn attach_printable_lazy<A, F>(
self,
attachment: F
) -> FutureWithLazyPrintableAttachment<Self, F> ⓘ
where
A: Display + Debug + Send + Sync + 'static,
F: FnOnce() -> A;
fn change_context<C>(self, context: C) -> FutureWithContext<Self, C> ⓘ
where
C: Context;
fn change_context_lazy<C, F>(
self,
context: F
) -> FutureWithLazyContext<Self, F> ⓘ
where
C: Context,
F: FnOnce() -> C;
}
Expand description
Extension trait for Future
to provide contextual information on Report
s.