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
PinnedFieldsOf<__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§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