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 RateMetric
impl Send for RateMetric
impl Sync for RateMetric
impl Unpin for RateMetric
impl UnwindSafe for RateMetric
Blanket Implementations
Mutably borrows from an owned value. Read more