Struct sc_tracing::Values [−][src]
Holds associated values for a tracing span
Fields
bool_values: FxHashMap<String, bool>
HashMap of bool
values
i64_values: FxHashMap<String, i64>
HashMap of i64
values
u64_values: FxHashMap<String, u64>
HashMap of u64
values
string_values: FxHashMap<String, String>
HashMap of String
values
Implementations
impl Values
[src]
pub fn new() -> Self
[src]
Returns a new instance of Values
pub fn is_empty(&self) -> bool
[src]
Checks if all individual collections are empty
Trait Implementations
impl Clone for Values
[src]
impl Debug for Values
[src]
impl Default for Values
[src]
impl Display for Values
[src]
impl SerdeValue for Values
[src]
fn as_serde(&self) -> &dyn Serialize
[src]
fn to_sendable(&self) -> Box<dyn SerdeValue + Send + 'static>
[src]
pub fn serialize_fallback(
&self,
_key: &'static str,
_serializer: &mut dyn Serializer
) -> Result<(), Error>
[src]
&self,
_key: &'static str,
_serializer: &mut dyn Serializer
) -> Result<(), Error>
impl Serialize for Values
[src]
impl Value for Values
[src]
impl Visit for Values
[src]
fn record_i64(&mut self, field: &Field, value: i64)
[src]
fn record_u64(&mut self, field: &Field, value: u64)
[src]
fn record_bool(&mut self, field: &Field, value: bool)
[src]
fn record_str(&mut self, field: &Field, value: &str)
[src]
fn record_debug(&mut self, field: &Field, value: &dyn Debug)
[src]
pub fn record_error(&mut self, field: &Field, value: &(dyn Error + 'static))
[src]
Auto Trait Implementations
impl RefUnwindSafe for Values
impl Send for Values
impl Sync for Values
impl Unpin for Values
impl UnwindSafe for Values
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,