[][src]Struct tracing_core::span::Record

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

A set of fields recorded by a span.

Implementations

impl<'a> Record<'a>[src]

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

Constructs a new Record from a ValueSet.

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

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

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

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

pub fn is_empty(&self) -> bool[src]

Returns true if this Record contains no values.

Trait Implementations

impl<'a> Debug for Record<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Record<'a>[src]

impl<'a> !Send for Record<'a>[src]

impl<'a> !Sync for Record<'a>[src]

impl<'a> Unpin for Record<'a>[src]

impl<'a> !UnwindSafe for Record<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.