Trait tracing::Value

source ·
pub trait Value: Sealed {
    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 + 'static

source§

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

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

impl Display for dyn Value + 'static

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 i8

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 isize

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 u16

source§

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

source§

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

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 i64

source§

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

source§

impl Value for bool

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 u8

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 u32

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 usize

source§

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

source§

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

source§

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

Implementors§

source§

impl Value for Empty

source§

impl Value for NonZeroI8

source§

impl Value for NonZeroI16

source§

impl Value for NonZeroI32

source§

impl Value for NonZeroI64

source§

impl Value for NonZeroIsize

source§

impl Value for NonZeroU8

source§

impl Value for NonZeroU16

source§

impl Value for NonZeroU32

source§

impl Value for NonZeroU64

source§

impl Value for NonZeroUsize

source§

impl Value for dyn Error + 'static

source§

impl Value for dyn Error + Send + 'static

source§

impl Value for dyn Error + Send + Sync + 'static

source§

impl Value for dyn Error + Sync + 'static

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, Global>where
    T: Value + ?Sized,

source§

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