Enum HistogramScale
#[non_exhaustive]pub enum HistogramScale {
Linear,
Log,
}
Available on
tokio_unstable and crate feature rt only.Whether the histogram used to aggregate a metric uses a linear or logarithmic scale.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Linear
Linear bucket scale
Log
Logarithmic bucket scale
Trait Implementations
impl Clone for HistogramScale
fn clone(&self) -> HistogramScale
Returns a duplicate of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more
impl Copy for HistogramScale
impl Debug for HistogramScale
impl Eq for HistogramScale
impl PartialEq for HistogramScale
impl StructuralPartialEq for HistogramScale
Auto Trait Implementations
impl Freeze for HistogramScale
impl RefUnwindSafe for HistogramScale
impl Send for HistogramScale
impl Sync for HistogramScale
impl Unpin for HistogramScale
impl UnsafeUnpin for HistogramScale
impl UnwindSafe for HistogramScale
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/enum.HistogramScale.html