pub struct HistogramConfiguration { /* private fields */ }
Available on
tokio_unstable
and crate feature rt
only.Expand description
Configuration for the poll count histogram
Implementations§
Source§impl HistogramConfiguration
impl HistogramConfiguration
Sourcepub fn linear(bucket_width: Duration, num_buckets: usize) -> Self
pub fn linear(bucket_width: Duration, num_buckets: usize) -> Self
Create a linear bucketed histogram
§Arguments
bucket_width
: The width of each bucketnum_buckets
: The number of buckets
Sourcepub fn log(configuration: impl Into<LogHistogram>) -> Self
pub fn log(configuration: impl Into<LogHistogram>) -> Self
Creates a log-scaled bucketed histogram
See LogHistogramBuilder
for information about configuration & defaults
Trait Implementations§
Source§impl Clone for HistogramConfiguration
impl Clone for HistogramConfiguration
Source§fn clone(&self) -> HistogramConfiguration
fn clone(&self) -> HistogramConfiguration
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 moreAuto Trait Implementations§
impl Freeze for HistogramConfiguration
impl RefUnwindSafe for HistogramConfiguration
impl Send for HistogramConfiguration
impl Sync for HistogramConfiguration
impl Unpin for HistogramConfiguration
impl UnwindSafe for HistogramConfiguration
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