Trait glean_core::metrics::MetricType[][src]

pub trait MetricType {
    fn meta(&self) -> &CommonMetricData;
fn meta_mut(&mut self) -> &mut CommonMetricData; fn should_record(&self, glean: &Glean) -> bool { ... } }
Expand description

A MetricType describes common behavior across all metrics.

Required methods

Access the stored metadata

Access the stored metadata mutable

Provided methods

Whether this metric should currently be recorded

This depends on the metrics own state, as determined by its metadata, and whether upload is enabled on the Glean object.

Implementors