[][src]Struct tracing_core::Field

pub struct Field { /* fields omitted */ }

An opaque key allowing O(1) access to a field in a Span's key-value data.

As keys are defined by the metadata of a span, rather than by an individual instance of a span, a key may be used to access the same field across all instances of a given span with the same metadata. Thus, when a subscriber observes a new span, it need only access a field by name once, and use the key for that name for all other accesses.

Implementations

impl Field[src]

pub fn callsite(&self) -> Identifier[src]

Returns an Identifier that uniquely identifies the Callsite which defines this field.

pub fn name(&self) -> &'static str[src]

Returns a string representing the name of the field.

Trait Implementations

impl AsRef<str> for Field[src]

impl Clone for Field[src]

impl Debug for Field[src]

impl Display for Field[src]

impl Eq for Field[src]

impl Hash for Field[src]

impl PartialEq<Field> for Field[src]

Auto Trait Implementations

impl !RefUnwindSafe for Field[src]

impl Send for Field[src]

impl Sync for Field[src]

impl Unpin for Field[src]

impl !UnwindSafe for Field[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.