Struct ore::metrics::ComputedGenericGauge [−][src]
pub struct ComputedGenericGauge<P> where
P: Atomic, {
gauge: GenericGauge<P>,
f: Arc<dyn Fn() -> P::T + Send + Sync>,
}
This is supported on crate feature
metrics
only.Expand description
A Gauge
whose value is computed whenever it is observed.
Fields
gauge: GenericGauge<P>
f: Arc<dyn Fn() -> P::T + Send + Sync>
Implementations
Trait Implementations
Auto Trait Implementations
impl<P> !RefUnwindSafe for ComputedGenericGauge<P>
impl<P> Send for ComputedGenericGauge<P>
impl<P> Sync for ComputedGenericGauge<P>
impl<P> Unpin for ComputedGenericGauge<P>
impl<P> !UnwindSafe for ComputedGenericGauge<P>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more