devela::_dep::tracing::span

Trait AsId

pub trait AsId: Sealed {
    // Required method
    fn as_id(&self) -> Option<&Id> ;
}
Available on crate features dep_tracing and alloc only.
Expand description

Trait implemented by types which have a span Id.

Required Methods§

fn as_id(&self) -> Option<&Id>

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

Implementors§