pub struct ExponentialHistogram<T> { /* private fields */ }Expand description
The histogram of all measurements of values from an instrument.
Implementations§
Source§impl<T> ExponentialHistogram<T>
impl<T> ExponentialHistogram<T>
Sourcepub fn data_points(
&self,
) -> impl Iterator<Item = &ExponentialHistogramDataPoint<T>>
pub fn data_points( &self, ) -> impl Iterator<Item = &ExponentialHistogramDataPoint<T>>
Returns an iterator over the ExponentialHistogramDataPoints in ExponentialHistogram.
Sourcepub fn start_time(&self) -> SystemTime
pub fn start_time(&self) -> SystemTime
Returns the time when the time series was started.
Sourcepub fn time(&self) -> SystemTime
pub fn time(&self) -> SystemTime
Returns the time when the time series was recorded.
Sourcepub fn temporality(&self) -> Temporality
pub fn temporality(&self) -> Temporality
Returns the temporality describing if the aggregation is reported as the change from the last report time, or the cumulative changes since a fixed start time.
Trait Implementations§
Source§impl<T: Clone> Clone for ExponentialHistogram<T>
impl<T: Clone> Clone for ExponentialHistogram<T>
Source§fn clone(&self) -> ExponentialHistogram<T>
fn clone(&self) -> ExponentialHistogram<T>
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<T: Debug> Debug for ExponentialHistogram<T>
impl<T: Debug> Debug for ExponentialHistogram<T>
Source§impl<T> From<ExponentialHistogram<T>> for MetricData<T>
impl<T> From<ExponentialHistogram<T>> for MetricData<T>
Source§fn from(value: ExponentialHistogram<T>) -> Self
fn from(value: ExponentialHistogram<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for ExponentialHistogram<T>
impl<T> RefUnwindSafe for ExponentialHistogram<T>where
T: RefUnwindSafe,
impl<T> Send for ExponentialHistogram<T>where
T: Send,
impl<T> Sync for ExponentialHistogram<T>where
T: Sync,
impl<T> Unpin for ExponentialHistogram<T>where
T: Unpin,
impl<T> UnwindSafe for ExponentialHistogram<T>where
T: UnwindSafe,
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