pub struct DerivedGauge { /* private fields */ }Expand description
A gauge that holds the lowest or highest value observed so far.
The gauge only changes when a value is lower (for min) or higher (for max) than all values observed before it,
so it never moves back. The gauge ignores NaN values. The tracked value never resets.
Clones share the tracking state, so every clone of the containing metrics struct updates the same value. Separate instances do not share state: if two instances write to the same gauge, the gauge can move back.
This type is an implementation detail of the static_metrics attribute macro. Don’t construct or use it directly.
Implementations§
Trait Implementations§
Source§impl Clone for DerivedGauge
impl Clone for DerivedGauge
Source§fn clone(&self) -> DerivedGauge
fn clone(&self) -> DerivedGauge
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DerivedGauge
impl RefUnwindSafe for DerivedGauge
impl Send for DerivedGauge
impl Sync for DerivedGauge
impl Unpin for DerivedGauge
impl UnsafeUnpin for DerivedGauge
impl UnwindSafe for DerivedGauge
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