pub struct FutureWithLazyContext<Fut, F> { /* private fields */ }Expand description
Adaptor returned by FutureExt::change_context_lazy.
Trait Implementations§
Auto Trait Implementations§
impl<Fut, F> Forget for FutureWithLazyContext<Fut, F>
impl<Fut, F> Freeze for FutureWithLazyContext<Fut, F>
impl<Fut, F> Move for FutureWithLazyContext<Fut, F>
impl<Fut, F> RefUnwindSafe for FutureWithLazyContext<Fut, F>
impl<Fut, F> Send for FutureWithLazyContext<Fut, F>
impl<Fut, F> Sync for FutureWithLazyContext<Fut, F>
impl<Fut, F> Unpin for FutureWithLazyContext<Fut, F>
impl<Fut, F> UnsafeUnpin for FutureWithLazyContext<Fut, F>
impl<Fut, F> UnwindSafe for FutureWithLazyContext<Fut, F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Fut> FutureExt for Fut
impl<Fut> FutureExt for Fut
Source§fn attach<A>(self, attachment: A) -> FutureWithAttachment<Fut, A> ⓘwhere
A: Attachment,
fn attach<A>(self, attachment: A) -> FutureWithAttachment<Fut, A> ⓘwhere
A: Attachment,
Source§fn attach_with<A, F>(self, attachment: F) -> FutureWithLazyAttachment<Fut, F> ⓘwhere
A: Attachment,
F: FnOnce() -> A,
fn attach_with<A, F>(self, attachment: F) -> FutureWithLazyAttachment<Fut, F> ⓘwhere
A: Attachment,
F: FnOnce() -> A,
Source§fn attach_opaque<A>(self, attachment: A) -> FutureWithOpaqueAttachment<Fut, A> ⓘwhere
A: OpaqueAttachment,
fn attach_opaque<A>(self, attachment: A) -> FutureWithOpaqueAttachment<Fut, A> ⓘwhere
A: OpaqueAttachment,
Source§fn attach_opaque_with<A, F>(
self,
attachment: F,
) -> FutureWithLazyOpaqueAttachment<Fut, F> ⓘwhere
A: OpaqueAttachment,
F: FnOnce() -> A,
fn attach_opaque_with<A, F>(
self,
attachment: F,
) -> FutureWithLazyOpaqueAttachment<Fut, F> ⓘwhere
A: OpaqueAttachment,
F: FnOnce() -> A,
Source§fn change_context<C>(self, context: C) -> FutureWithContext<Fut, C> ⓘ
fn change_context<C>(self, context: C) -> FutureWithContext<Fut, C> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more