pub type ComputedGauge = ComputedGenericGauge<AtomicF64>;
Available on crate feature
metrics
only.Expand description
A ComputedGenericGauge
for 64-bit floating point numbers.
Aliased Type§
struct ComputedGauge {
gauge: GenericGauge<AtomicF64>,
f: Arc<dyn Fn() -> f64 + Send + Sync>,
}
Fields§
§gauge: GenericGauge<AtomicF64>
§f: Arc<dyn Fn() -> f64 + Send + Sync>
Implementations
Trait Implementations
Source§impl<P> Clone for ComputedGenericGauge<P>where
P: Atomic,
impl<P> Clone for ComputedGenericGauge<P>where
P: Atomic,
Source§fn clone(&self) -> ComputedGenericGauge<P>
fn clone(&self) -> ComputedGenericGauge<P>
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 more