pub enum WireFieldValue {
U64(u64),
I64(i64),
F64(f64),
Bool(bool),
Str(String),
}Expand description
Wire representation of a captured field value. Mirrors
tracing_cache::FieldValue but collapses the four string variants
(Str / SmallString / SharedString / String) to a single
Str(String) — the heap is unavoidable once we cross the network
boundary anyway.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for WireFieldValue
impl Clone for WireFieldValue
Source§fn clone(&self) -> WireFieldValue
fn clone(&self) -> WireFieldValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WireFieldValue
impl Debug for WireFieldValue
Source§impl<'de> Deserialize<'de> for WireFieldValue
impl<'de> Deserialize<'de> for WireFieldValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WireFieldValue
impl Display for WireFieldValue
Source§impl PartialEq for WireFieldValue
impl PartialEq for WireFieldValue
Source§fn eq(&self, other: &WireFieldValue) -> bool
fn eq(&self, other: &WireFieldValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WireFieldValue
impl Serialize for WireFieldValue
impl StructuralPartialEq for WireFieldValue
Auto Trait Implementations§
impl Freeze for WireFieldValue
impl RefUnwindSafe for WireFieldValue
impl Send for WireFieldValue
impl Sync for WireFieldValue
impl Unpin for WireFieldValue
impl UnsafeUnpin for WireFieldValue
impl UnwindSafe for WireFieldValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more