pub struct WithContext<F> { /* private fields */ }Available on crate feature
std only.Expand description
A future with a ContextSnapshot installed around every poll.
Created by ContextSnapshot::wrap.
Trait Implementations§
Source§impl<F> Debug for WithContext<F>
impl<F> Debug for WithContext<F>
Source§impl<F: Future> Future for WithContext<F>
impl<F: Future> Future for WithContext<F>
Auto Trait Implementations§
impl<F> Freeze for WithContext<F>
impl<F> RefUnwindSafe for WithContext<F>
impl<F> Send for WithContext<F>
impl<F> Sync for WithContext<F>
impl<F> Unpin for WithContext<F>
impl<F> UnsafeUnpin for WithContext<F>
impl<F> UnwindSafe for WithContext<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<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