Struct glean_core::metrics::RateMetric [−][src]
pub struct RateMetric { /* fields omitted */ }Expand description
A rate metric.
Used to determine the proportion of things via two counts:
- A numerator defining the amount of times something happened,
- A denominator counting the amount of times someting could have happened.
Both numerator and denominator can only be incremented, not decremented.
Implementations
Creates a new rate metric.
Trait Implementations
Access the stored metadata
Access the stored metadata mutable
Whether this metric should currently be recorded Read more
Auto Trait Implementations
impl RefUnwindSafe for RateMetricimpl Send for RateMetricimpl Sync for RateMetricimpl Unpin for RateMetricimpl UnwindSafe for RateMetricBlanket Implementations
Mutably borrows from an owned value. Read more