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