pub struct FutureTracker<T> { /* private fields */ }
Expand description
A Future
that has been tracked with a [Span
].
It tracks the execution time of the future, it’s active and idle phases.
Implementations§
source§impl<T> FutureTracker<T>
impl<T> FutureTracker<T>
sourcepub fn new(inner: T) -> Self
pub fn new(inner: T) -> Self
Creates a FutureTracker
wrapper around the inner
future.
Trait Implementations§
source§impl<T: Clone> Clone for FutureTracker<T>
impl<T: Clone> Clone for FutureTracker<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for FutureTracker<T>
impl<T: Debug> Debug for FutureTracker<T>
source§impl<T: Future> Future for FutureTracker<T>
impl<T: Future> Future for FutureTracker<T>
impl<'__pin, T> Unpin for FutureTracker<T>where
__Origin<'__pin, T>: Unpin,
Auto Trait Implementations§
impl<T> Freeze for FutureTracker<T>where
T: Freeze,
impl<T> RefUnwindSafe for FutureTracker<T>where
T: RefUnwindSafe,
impl<T> Send for FutureTracker<T>where
T: Send,
impl<T> Sync for FutureTracker<T>where
T: Sync,
impl<T> UnwindSafe for FutureTracker<T>where
T: UnwindSafe,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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