pub struct TraceFuture<'a, Fut: Future> { /* private fields */ }
Expand description
Wraps a Future
and writes duration events when the future is created, dropped, and every time
it’s polled. The duration events are connected by flow events.
Implementations§
Source§impl<'a, Fut: Future> TraceFuture<'a, Fut>
impl<'a, Fut: Future> TraceFuture<'a, Fut>
pub fn new(args: TraceFutureArgs<'a>, future: Fut) -> Self
Trait Implementations§
Source§impl<'a, Fut: Future> Drop for TraceFuture<'a, Fut>
impl<'a, Fut: Future> Drop for TraceFuture<'a, Fut>
Source§impl<Fut: Future> Future for TraceFuture<'_, Fut>
impl<Fut: Future> Future for TraceFuture<'_, Fut>
impl<'pin, 'a, Fut: Future> Unpin for TraceFuture<'a, Fut>where
__TraceFuture<'pin, 'a, Fut>: Unpin,
Auto Trait Implementations§
impl<'a, Fut> Freeze for TraceFuture<'a, Fut>where
Fut: Freeze,
impl<'a, Fut> RefUnwindSafe for TraceFuture<'a, Fut>where
Fut: RefUnwindSafe,
impl<'a, Fut> Send for TraceFuture<'a, Fut>where
Fut: Send,
impl<'a, Fut> Sync for TraceFuture<'a, Fut>where
Fut: Sync,
impl<'a, Fut> UnwindSafe for TraceFuture<'a, Fut>where
Fut: 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<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