pub struct LogHistogram { /* private fields */ }Available on 
tokio_unstable and crate feature rt only.Expand description
Log Histogram
This implements an H2 Histogram, a histogram similar
to HdrHistogram, but with better performance. It guarantees an error bound of 2^-p.
Unlike a traditional H2 histogram this has two small changes:
- The 0th bucket runs for 
0..min_value. This allows truncating a large number of buckets that would cover extremely short timescales that customers usually don’t care about. - The final bucket runs all the way to 
u64::MAX— traditional H2 histograms would truncate or reject these values. 
For information about the default configuration, see LogHistogramBuilder.
Implementations§
Source§impl LogHistogram
 
impl LogHistogram
Sourcepub fn builder() -> LogHistogramBuilder
 
pub fn builder() -> LogHistogramBuilder
Creates a builder for LogHistogram
Trait Implementations§
Source§impl Clone for LogHistogram
 
impl Clone for LogHistogram
Source§fn clone(&self) -> LogHistogram
 
fn clone(&self) -> LogHistogram
Returns a copy of the value. Read more
1.0.0 · 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 LogHistogram
 
impl Debug for LogHistogram
Source§impl Default for LogHistogram
 
impl Default for LogHistogram
Source§impl From<LogHistogramBuilder> for LogHistogram
 
impl From<LogHistogramBuilder> for LogHistogram
Source§fn from(value: LogHistogramBuilder) -> Self
 
fn from(value: LogHistogramBuilder) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LogHistogram
 
impl PartialEq for LogHistogram
impl Copy for LogHistogram
impl Eq for LogHistogram
impl StructuralPartialEq for LogHistogram
Auto Trait Implementations§
impl Freeze for LogHistogram
impl RefUnwindSafe for LogHistogram
impl Send for LogHistogram
impl Sync for LogHistogram
impl Unpin for LogHistogram
impl UnwindSafe for LogHistogram
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