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

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[src]

Returns this span’s ID.

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

Returns a reference to the span’s Metadata.

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

Returns a reference to the ID

fn extensions(&self) -> Extensions<'_>[src]

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<'_>[src]

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...