pub trait ToRootSpan {
// Required method
fn to_root_span(&self) -> Span;
}
Expand description
A trait for types that can be converted to a Span
that can be used as the root of an
await-tree.
Required Methods§
Sourcefn to_root_span(&self) -> Span
fn to_root_span(&self) -> Span
Convert the type to a Span
that can be used as the root of an await-tree.