Sign in
android
/
toolchain
/
cargo-deny
/
HEAD
/
.
/
android
/
vendor
/
tokio-1.36.0
/
src
/
future
/
trace.rs
blob: 28789a604d20171037b395eb32adf81fcd929a0a [
file
] [
log
] [
blame
]
use
std
::
future
::
Future
;
pub
(
crate
)
trait
InstrumentedFuture
:
Future
{
fn
id
(&
self
)
->
Option
<
tracing
::
Id
>;
}
impl
<
F
:
Future
>
InstrumentedFuture
for
tracing
::
instrument
::
Instrumented
<
F
>
{
fn
id
(&
self
)
->
Option
<
tracing
::
Id
>
{
self
.
span
().
id
()
}
}