Sign in
android
/
platform
/
external
/
rust
/
android-crates-io
/
c937122a6a0ab68a201c32adcacd4d784a327595
/
.
/
crates
/
tokio
/
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
()
}
}