devela::_dep::tracing

Trait Value

pub trait Value: Sealed {
    // Required method
    fn record(&self, key: &Field, visitor: &mut dyn Visit);
}
Available on crate features dep_tracing and alloc only.
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 [u8]

§

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)

Implementors§

§

impl Value for NonZero<i8>

§

impl Value for NonZero<i16>

§

impl Value for NonZero<i32>

§

impl Value for NonZero<i64>

§

impl Value for NonZero<i128>

§

impl Value for NonZero<isize>

§

impl Value for NonZero<u8>

§

impl Value for NonZero<u16>

§

impl Value for NonZero<u32>

§

impl Value for NonZero<u64>

§

impl Value for NonZero<u128>

§

impl Value for NonZero<usize>

§

impl Value for String

§

impl Value for Empty

§

impl Value for dyn Error

§

impl Value for dyn Error + Send

§

impl Value for dyn Error + Send + Sync

§

impl Value for dyn Error + Sync

§

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

§

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

§

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

§

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

§

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

§

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