Debian Codegraph @

third_party/rust/tokio/src/future/trace.rs

raw
1 use std::future::Future;
2
3 pub(crate) trait InstrumentedFuture: Future {
4 fn id(&self) -> Option<tracing::Id>;
5 }
6
7 impl<F: Future> InstrumentedFuture for tracing::instrument::Instrumented<F> {
8 fn id(&self) -> Option<tracing::Id> {
9 self.span().id()
10 }
11 }