[][src]Trait tracing_subscriber::registry::SpanData

pub trait SpanData<'a> {
    fn id(&self) -> Id;
fn metadata(&self) -> &'static Metadata<'static>;
fn parent(&self) -> Option<&Id>;
fn extensions(&self) -> Extensions;
fn extensions_mut(&self) -> ExtensionsMut; }

A stored representation of data associated with a span.

Required methods

fn id(&self) -> Id

Returns this span's ID.

fn metadata(&self) -> &'static Metadata<'static>

Returns a reference to the span's Metadata.

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

Returns a reference to the ID

fn extensions(&self) -> Extensions

Returns a reference to this span's Extensions.

The extensions may be used by Layers to store additional data describing the span.

fn extensions_mut(&self) -> ExtensionsMut

Returns a mutable reference to this span's Extensions.

The extensions may be used by Layers to store additional data describing the span.

Loading content...

Implementors

impl<'a> SpanData<'a> for Data<'a>[src]

Loading content...