tracing::field

Trait Value

pub trait Value: Sealed {
    // Required method
    fn record(&self, key: &Field, visitor: &mut dyn Visit);
}
Expand description

A field value of an erased type.

Implementors of Value may call the appropriate typed recording methods on the visitor passed to their record method in order to indicate how their data should be recorded.

Required Methods§

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

Visits this value with the given Visitor.

Trait Implementations§

§

impl Debug for dyn Value

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for dyn Value

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Implementations on Foreign Types§

§

impl Value for bool

§

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

§

impl Value for f32

§

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

§

impl Value for f64

§

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

§

impl Value for i8

§

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

§

impl Value for i16

§

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

§

impl Value for i32

§

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

§

impl Value for i64

§

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

§

impl Value for i128

§

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

§

impl Value for isize

§

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

§

impl Value for str

§

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

§

impl Value for u8

§

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

§

impl Value for u16

§

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

§

impl Value for u32

§

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

§

impl Value for u64

§

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

§

impl Value for u128

§

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

§

impl Value for usize

§

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

§

impl Value for String

§

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

§

impl Value for NonZero<i8>

§

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

§

impl Value for NonZero<i16>

§

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

§

impl Value for NonZero<i32>

§

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

§

impl Value for NonZero<i64>

§

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

§

impl Value for NonZero<i128>

§

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

§

impl Value for NonZero<isize>

§

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

§

impl Value for NonZero<u8>

§

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

§

impl Value for NonZero<u16>

§

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

§

impl Value for NonZero<u32>

§

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

§

impl Value for NonZero<u64>

§

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

§

impl Value for NonZero<u128>

§

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

§

impl Value for NonZero<usize>

§

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

§

impl Value for dyn Error

§

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

§

impl Value for dyn Error + Send

§

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

§

impl Value for dyn Error + Send + Sync

§

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

§

impl Value for dyn Error + Sync

§

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

§

impl<'a> Value for Arguments<'a>

§

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

§

impl<'a, T> Value for &'a T
where T: Value + 'a + ?Sized,

§

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

§

impl<'a, T> Value for &'a mut T
where T: Value + 'a + ?Sized,

§

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

§

impl<T> Value for Option<T>
where T: Value,

§

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

§

impl<T> Value for Box<T>
where T: Value + ?Sized,

§

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

§

impl<T> Value for Wrapping<T>
where T: Value,

§

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

Implementors§

§

impl Value for Empty

§

impl<T> Value for DebugValue<T>
where T: Debug,

§

impl<T> Value for DisplayValue<T>
where T: Display,