logo

Trait tracing::span::AsId[][src]

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.

Implementors