Struct HistogramConfiguration
pub struct HistogramConfiguration { /* private fields */ }
Available on
tokio_unstable and crate feature rt only.Configuration for the poll count histogram
Implementations
impl HistogramConfiguration
pub fn linear(bucket_width: Duration, num_buckets: usize) -> Self
Create a linear bucketed histogram
Arguments
-
bucket_width: The width of each bucket -
num_buckets: The number of buckets
pub fn log(configuration: impl Into<LogHistogram>) -> Self
Creates a log-scaled bucketed histogram
See LogHistogramBuilder for information about configuration & defaults
Trait Implementations
impl Clone for HistogramConfiguration
fn clone(&self) -> HistogramConfiguration
Returns a duplicate of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more
Auto Trait Implementations
impl Freeze for HistogramConfiguration
impl RefUnwindSafe for HistogramConfiguration
impl Send for HistogramConfiguration
impl Sync for HistogramConfiguration
impl Unpin for HistogramConfiguration
impl UnsafeUnpin for HistogramConfiguration
impl UnwindSafe for HistogramConfiguration
Blanket Implementations
impl<T> BorrowMut<T> for Twhere T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CloneToUninit for Twhere T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/runtime/struct.HistogramConfiguration.html