pub struct Instrumented<F> { /* private fields */ }Expand description
A future that installs a trace scope on every poll and restores the
previous one after, so the scope follows the task across threads.
Made by Tracer::in_scope and Ctx::in_scope.
Trait Implementations§
Source§impl<F: Future> Future for Instrumented<F>
impl<F: Future> Future for Instrumented<F>
Auto Trait Implementations§
impl<F> !RefUnwindSafe for Instrumented<F>
impl<F> !UnwindSafe for Instrumented<F>
impl<F> Forget for Instrumented<F>
impl<F> Freeze for Instrumented<F>where
*const F is !null: Freeze,
PhantomData<F>: Freeze,
*const ArcInner<Inner> is !null: Freeze,
PhantomData<ArcInner<Inner>>: Freeze,
impl<F> Move for Instrumented<F>
impl<F> Send for Instrumented<F>
impl<F> Sync for Instrumented<F>
impl<F> Unpin for Instrumented<F>
impl<F> UnsafeUnpin for Instrumented<F>where
*const F is !null: UnsafeUnpin,
PhantomData<F>: UnsafeUnpin,
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
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