Trait tracing::Value

source ·
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§

source

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

Visits this value with the given Visitor.

Trait Implementations§

source§

impl Debug for dyn Value

source§

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

Formats the value using the given formatter. Read more
source§

impl Display for dyn Value

source§

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

Formats the value using the given formatter. Read more

Implementations on Foreign Types§

source§

impl Value for bool

source§

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

source§

impl Value for f32

source§

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

source§

impl Value for f64

source§

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

source§

impl Value for i8

source§

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

source§

impl Value for i16

source§

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

source§

impl Value for i32

source§

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

source§

impl Value for i64

source§

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

source§

impl Value for i128

source§

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

source§

impl Value for isize

source§

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

source§

impl Value for str

source§

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

source§

impl Value for u8

source§

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

source§

impl Value for u16

source§

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

source§

impl Value for u32

source§

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

source§

impl Value for u64

source§

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

source§

impl Value for u128

source§

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

source§

impl Value for usize

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§

source§

impl Value for Empty

source§

impl Value for NonZero<i8>

source§

impl Value for NonZero<i16>

source§

impl Value for NonZero<i32>

source§

impl Value for NonZero<i64>

source§

impl Value for NonZero<i128>

source§

impl Value for NonZero<isize>

source§

impl Value for NonZero<u8>

source§

impl Value for NonZero<u16>

source§

impl Value for NonZero<u32>

source§

impl Value for NonZero<u64>

source§

impl Value for NonZero<u128>

source§

impl Value for NonZero<usize>

source§

impl Value for String

source§

impl Value for dyn Error

source§

impl Value for dyn Error + Send

source§

impl Value for dyn Error + Sync

source§

impl Value for dyn Error + Sync + Send

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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