Trait await_tree::InstrumentAwait
source · pub trait InstrumentAwait: Future + Sized {
// Provided methods
fn instrument_await(
self,
span: impl Into<Span>
) -> Instrumented<Self, false> ⓘ { ... }
fn verbose_instrument_await(
self,
span: impl Into<Span>
) -> Instrumented<Self, true> ⓘ { ... }
}
Expand description
Attach spans to a future to be traced in the await-tree.
Provided Methods§
sourcefn 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.
sourcefn 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.
Object Safety§
This trait is not object safe.