pub trait Counter: TestGetValue<Output = 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/.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".