Struct TracerConfig

Source
pub struct TracerConfig { /* private fields */ }
Expand description

Configuration object to create a tracer.

Implementations§

Source§

impl TracerConfig

Source

pub fn is_human_readable(self, value: bool) -> Self

Whether to trace the human readable encoding of (de)serialization.

Source

pub fn record_samples_for_newtype_structs(self, value: bool) -> Self

Record samples of newtype structs during serialization and inject them during deserialization.

Source

pub fn record_samples_for_tuple_structs(self, value: bool) -> Self

Record samples of tuple structs during serialization and inject them during deserialization.

Source

pub fn record_samples_for_structs(self, value: bool) -> Self

Record samples of (regular) structs during serialization and inject them during deserialization.

Source

pub fn default_bool_value(self, value: bool) -> Self

The default serialized value for this primitive type.

Source

pub fn default_u8_value(self, value: u8) -> Self

The default serialized value for this primitive type.

Source

pub fn default_u16_value(self, value: u16) -> Self

The default serialized value for this primitive type.

Source

pub fn default_u32_value(self, value: u32) -> Self

The default serialized value for this primitive type.

Source

pub fn default_u64_value(self, value: u64) -> Self

The default serialized value for this primitive type.

Source

pub fn default_u128_value(self, value: u128) -> Self

The default serialized value for this primitive type.

Source

pub fn default_i8_value(self, value: i8) -> Self

The default serialized value for this primitive type.

Source

pub fn default_i16_value(self, value: i16) -> Self

The default serialized value for this primitive type.

Source

pub fn default_i32_value(self, value: i32) -> Self

The default serialized value for this primitive type.

Source

pub fn default_i64_value(self, value: i64) -> Self

The default serialized value for this primitive type.

Source

pub fn default_i128_value(self, value: i128) -> Self

The default serialized value for this primitive type.

Source

pub fn default_f32_value(self, value: f32) -> Self

The default serialized value for this primitive type.

Source

pub fn default_f64_value(self, value: f64) -> Self

The default serialized value for this primitive type.

Source

pub fn default_char_value(self, value: char) -> Self

The default serialized value for this primitive type.

Source

pub fn default_borrowed_str_value(self, value: &'static str) -> Self

The default serialized value for this primitive type.

Source

pub fn default_string_value(self, value: String) -> Self

The default serialized value for this primitive type.

Source

pub fn default_borrowed_bytes_value(self, value: &'static [u8]) -> Self

The default serialized value for this primitive type.

Source

pub fn default_byte_buf_value(self, value: Vec<u8>) -> Self

The default serialized value for this primitive type.

Trait Implementations§

Source§

impl Debug for TracerConfig

Source§

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

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

impl Default for TracerConfig

Source§

fn default() -> Self

Create a new structure to hold value samples.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.