pub struct Config { /* private fields */ }
Expand description
How tracing should be configured.
Implementations§
Source§impl Config
impl Config
Sourcepub fn with_limit_bytes(size: usize) -> Self
pub fn with_limit_bytes(size: usize) -> Self
The maximum number of bytes the tracing data should take up. This limit won’t be exceeded by the underlying storage itself (i.e. rounds down).
Sourcepub fn with_limit_count(limit: usize) -> Self
pub fn with_limit_count(limit: usize) -> Self
The maximum number of entries the tracing data should allow. Total
storage allocated will be limit * size_of
Sourcepub fn default() -> Self
pub fn default() -> Self
The default amount of storage to allocate for tracing. Currently 1 MB.
Sourcepub fn max_size_in_bytes(self) -> usize
pub fn max_size_in_bytes(self) -> usize
The maximum amount of space the tracing data will take up. This does not account for any overhead of storing the data itself (i.e. pointer to the heap, counters, etc); just the data itself.
Sourcepub fn max_samples(self) -> usize
pub fn max_samples(self) -> usize
The maximum number of samples that should be stored.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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