Struct tracing::field::FieldSet[][src]

pub struct FieldSet { /* fields omitted */ }
Expand description

Describes the fields present on a span.

Implementations

Constructs a new FieldSet with the given array of field names and callsite.

Returns the Field named name, or None if no such field exists.

Returns true if self contains the given field.

Note: If field shares a name with a field
in this FieldSet, but was created by a FieldSet
with a different callsite, this FieldSet does not
contain it. This is so that if two separate span callsites define a field
named "foo", the Field corresponding to "foo" for each
of those callsites are not equivalent.

Returns an iterator over the Fields in this FieldSet.

Returns the number of fields in this FieldSet.

Returns whether or not this FieldSet has fields.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Which kind of iterator are we turning this into?

The type of the elements being iterated over.

Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

This is supported on crate feature std only.

Attaches the provided collector to this type, returning a WithDispatch wrapper. Read more

This is supported on crate feature std only.

Attaches the current default collector to this type, returning a WithDispatch wrapper. Read more