pub struct Sum<T> { /* private fields */ }Expand description
Represents the sum of all measurements of values from an instrument.
Implementations§
Source§impl<T> Sum<T>
impl<T> Sum<T>
Sourcepub fn data_points(&self) -> impl Iterator<Item = &SumDataPoint<T>>
pub fn data_points(&self) -> impl Iterator<Item = &SumDataPoint<T>>
Returns an iterator over the SumDataPoints in Sum.
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.
Sourcepub fn is_monotonic(&self) -> bool
pub fn is_monotonic(&self) -> bool
Returns whether this aggregation only increases or decreases.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Sum<T>
impl<T> RefUnwindSafe for Sum<T>where
T: RefUnwindSafe,
impl<T> Send for Sum<T>where
T: Send,
impl<T> Sync for Sum<T>where
T: Sync,
impl<T> Unpin for Sum<T>where
T: Unpin,
impl<T> UnwindSafe for Sum<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