pub enum LogValue<'a> {
Str(Cow<'a, str>),
Int(i64),
Uint(u64),
Float(f64),
Bool(bool),
}Expand description
A structured value on a log record (M845): the scalar kinds a sink can
render or ship (JSON, a tracing field) without knowing the log site. Str
borrows at the site, so a record a sink drops allocates nothing; the owned
form comes from into_owned.
Variants§
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for LogValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for LogValue<'a>
impl<'a> RefUnwindSafe for LogValue<'a>
impl<'a> Send for LogValue<'a>
impl<'a> Sync for LogValue<'a>
impl<'a> Unpin for LogValue<'a>
impl<'a> UnsafeUnpin for LogValue<'a>
impl<'a> UnwindSafe for LogValue<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more