Record in tracing_core::span - Rust (original) (raw)

pub struct Record<'a> { /* private fields */ }

Expand description

A set of fields recorded by a span.

Implementations§

Source§

impl<'a> Record<'a>

Source

pub fn new(values: &'a ValueSet<'a>) -> Self

Constructs a new Record from a ValueSet.

Source

pub fn record(&self, visitor: &mut dyn Visit)

Records all the fields in this Record with the provided Visitor.

Source

pub fn len(&self) -> usize

Returns the number of fields that would be visited from this Recordwhen Record::record() is called

Source

pub fn contains(&self, field: &Field) -> bool

Returns true if this Record contains a value for the given Field.

Source

pub fn is_empty(&self) -> bool

Returns true if this Record contains no values.

Trait Implementations§

Auto Trait Implementations§

§

impl<'a> Freeze for Record<'a>

§

impl<'a> RefUnwindSafe for Record<'a>

§

impl<'a> Send for Record<'a>

§

impl<'a> Sync for Record<'a>

§

impl<'a> Unpin for Record<'a>

§

impl<'a> UnwindSafe for Record<'a>

Blanket Implementations§