🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

Trait tracing::span::AsId

source ·
pub trait AsId: Sealed {
    fn as_id(&self) -> Option<&Id>;
Expand description

Trait implemented by types which have a span Id.

Required Methods

Returns the Id of the span that self corresponds to, or None if this corresponds to a disabled span.