Struct tic::Meters
[−]
[src]
pub struct Meters<T> { pub data: HashMap<String, u64>, pub combined: HashMap<String, u64>, // some fields omitted }
Fields
data: HashMap<String, u64>
combined: HashMap<String, u64>
Methods
impl<T: Hash + Eq + Send + Display + Clone> Meters<T>
[src]
fn new() -> Meters<T>
fn set_count(&mut self, channel: T, value: u64)
fn set_combined_count(&mut self, value: u64)
fn set_percentile(&mut self, channel: T, percentile: Percentile, value: u64)
fn set_combined_percentile(&mut self, percentile: Percentile, value: u64)
fn get_count(&self, channel: &T) -> Option<&u64>
fn get_combined_count(&self) -> Option<&u64>
fn get_percentile(&self, channel: &T, percentile: Percentile) -> Option<&u64>
fn get_combined_percentile(&self, percentile: Percentile) -> Option<&u64>
Trait Implementations
impl<T: Clone> Clone for Meters<T>
[src]
fn clone(&self) -> Meters<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more