pub struct Gauge<T> { /* private fields */ }Expand description
A measurement of the current value of an instrument.
Implementations§
Source§impl<T> Gauge<T>
impl<T> Gauge<T>
Sourcepub fn data_points(&self) -> impl Iterator<Item = &GaugeDataPoint<T>>
pub fn data_points(&self) -> impl Iterator<Item = &GaugeDataPoint<T>>
Returns an iterator over the GaugeDataPoints in Gauge.
Sourcepub fn start_time(&self) -> Option<SystemTime>
pub fn start_time(&self) -> Option<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.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Gauge<T>
impl<T> RefUnwindSafe for Gauge<T>where
T: RefUnwindSafe,
impl<T> Send for Gauge<T>where
T: Send,
impl<T> Sync for Gauge<T>where
T: Sync,
impl<T> Unpin for Gauge<T>where
T: Unpin,
impl<T> UnwindSafe for Gauge<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