Struct await_tree::Instrumented
source · pub struct Instrumented<F: Future, const VERBOSE: bool> { /* private fields */ }Expand description
The future for InstrumentAwait.
Trait Implementations§
impl<'pin, F: Future, const VERBOSE: bool> Unpin for Instrumented<F, VERBOSE>where __Instrumented<'pin, F, VERBOSE>: Unpin,
Auto Trait Implementations§
impl<F, const VERBOSE: bool> RefUnwindSafe for Instrumented<F, VERBOSE>where F: RefUnwindSafe,
impl<F, const VERBOSE: bool> Send for Instrumented<F, VERBOSE>where F: Send,
impl<F, const VERBOSE: bool> Sync for Instrumented<F, VERBOSE>where F: Sync,
impl<F, const VERBOSE: bool> UnwindSafe for Instrumented<F, VERBOSE>where F: UnwindSafe,
Blanket Implementations§
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> InstrumentAwait for Fwhere
F: Future,
impl<F> InstrumentAwait for Fwhere F: Future,
source§fn instrument_await(self, span: impl Into<Span>) -> Instrumented<Self, false> ⓘ
fn instrument_await(self, span: impl Into<Span>) -> Instrumented<Self, false> ⓘ
Instrument the future with a span.
source§fn verbose_instrument_await(
self,
span: impl Into<Span>
) -> Instrumented<Self, true> ⓘ
fn verbose_instrument_await( self, span: impl Into<Span> ) -> Instrumented<Self, true> ⓘ
Instrument the future with a verbose span, which is optionally enabled based on the registry
configuration.
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere F: Future,
§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