Trait sp_tracing::span::AsId[][src]

pub trait AsId: Sealed {
    pub fn as_id(&self) -> Option<&Id>;
}

Trait implemented by types which have a span Id.

Required methods

pub fn as_id(&self) -> Option<&Id>[src]

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

Loading content...

Implementors

Loading content...