pub struct TextRecorder { /* private fields */ }
Expand description
Records metrics in a hierarchical, text-based format.
Implementations§
Source§impl TextRecorder
impl TextRecorder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new TextRecorder
with a default set of quantiles.
Configures the recorder with these default quantiles: 0.0, 0.5, 0.9, 0.95, 0.99, 0.999, and
1.0. If you want to customize the quantiles used, you can call
TextRecorder::with_quantiles
.
The configured quantiles are used when rendering any histograms.
Sourcepub fn with_quantiles(quantiles: &[f64]) -> Self
pub fn with_quantiles(quantiles: &[f64]) -> Self
Creates a new TextRecorder
with the given set of quantiles.
The configured quantiles are used when rendering any histograms.
Trait Implementations§
Source§impl Clone for TextRecorder
impl Clone for TextRecorder
Source§impl Into<String> for TextRecorder
impl Into<String> for TextRecorder
Source§impl Recorder for TextRecorder
impl Recorder for TextRecorder
Auto Trait Implementations§
impl Freeze for TextRecorder
impl RefUnwindSafe for TextRecorder
impl Send for TextRecorder
impl Sync for TextRecorder
impl Unpin for TextRecorder
impl UnwindSafe for TextRecorder
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