Trait glean_core::traits::Counter
source · pub trait Counter: TestGetValue<i32> {
// Required methods
fn add(&self, amount: i32);
fn test_get_num_recorded_errors(&self, error: ErrorType) -> i32;
}
Expand description
A description for the CounterMetric
type.
When changing this trait, make sure all the operations are
implemented in the related type in ../metrics/
.