pub trait FutureExt: Future + Sized {
// Required methods
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;
}
Required Methods§
sourcefn attach<A>(self, attachment: A) -> FutureWithAttachment<Self, A> ⓘ
fn attach<A>(self, attachment: A) -> FutureWithAttachment<Self, A> ⓘ
sourcefn attach_lazy<A, F>(self, attachment: F) -> FutureWithLazyAttachment<Self, F> ⓘ
fn attach_lazy<A, F>(self, attachment: F) -> FutureWithLazyAttachment<Self, F> ⓘ
sourcefn attach_printable<A>(
self,
attachment: A,
) -> FutureWithPrintableAttachment<Self, A> ⓘ
fn attach_printable<A>( self, attachment: A, ) -> FutureWithPrintableAttachment<Self, A> ⓘ
sourcefn attach_printable_lazy<A, F>(
self,
attachment: F,
) -> FutureWithLazyPrintableAttachment<Self, F> ⓘ
fn attach_printable_lazy<A, F>( self, attachment: F, ) -> FutureWithLazyPrintableAttachment<Self, F> ⓘ
sourcefn change_context<C>(self, context: C) -> FutureWithContext<Self, C> ⓘwhere
C: Context,
fn change_context<C>(self, context: C) -> FutureWithContext<Self, C> ⓘwhere
C: Context,
sourcefn change_context_lazy<C, F>(self, context: F) -> FutureWithLazyContext<Self, F> ⓘ
fn change_context_lazy<C, F>(self, context: F) -> FutureWithLazyContext<Self, F> ⓘ
Object Safety§
This trait is not object safe.