tracing_core::field

Trait 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

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

impl Display for dyn Value

Source§

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

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 Value for String

Source§

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

Source§

impl Value for NonZeroI8

Source§

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

Source§

impl Value for NonZeroI16

Source§

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

Source§

impl Value for NonZeroI32

Source§

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

Source§

impl Value for NonZeroI64

Source§

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

Source§

impl Value for NonZeroI128

Source§

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

Source§

impl Value for NonZeroIsize

Source§

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

Source§

impl Value for NonZeroU8

Source§

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

Source§

impl Value for NonZeroU16

Source§

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

Source§

impl Value for NonZeroU32

Source§

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

Source§

impl Value for NonZeroU64

Source§

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

Source§

impl Value for NonZeroU128

Source§

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

Source§

impl Value for NonZeroUsize

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 dyn Error + 'static

Available on crate feature std only.
Source§

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

Source§

impl Value for dyn Error + Send + 'static

Available on crate feature std only.
Source§

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

Source§

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

Available on crate feature std only.
Source§

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

Source§

impl Value for dyn Error + Sync + 'static

Available on crate feature std only.
Source§

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

Source§

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

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)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

impl Value for Empty

Source§

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

Source§

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