pub trait InstrumentAwait: Future + Sized {
// Provided method
fn instrument_await(self, span: impl Into<Span>) -> Instrumented<Self> ⓘ { ... }
}
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> ⓘ
fn instrument_await(self, span: impl Into<Span>) -> Instrumented<Self> ⓘ
Instrument the future with a span.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.