[][src]Trait stats_traits::dynamic_stat_types::DynamicSingletonCounter

pub trait DynamicSingletonCounter<'a, T> {
    fn set_value(&'a self, fb: FacebookInit, value: i64, args: T);
fn get_value(&'a self, fb: FacebookInit, args: T) -> Option<i64>; }

Similar to the SingletonCounter trait, but accepts the args parameter for accessing dynamic histograms created at runtime.

Required methods

fn set_value(&'a self, fb: FacebookInit, value: i64, args: T)

Dynamic version of SingletonCounter::set_value

fn get_value(&'a self, fb: FacebookInit, args: T) -> Option<i64>

Dynamic version of SingletonCounter::get_value

Loading content...

Implementations on Foreign Types

impl<T> DynamicSingletonCounter<'static, T> for LocalKey<DynamicStat<T, BoxSingletonCounter>>[src]

Loading content...

Implementors

impl<'a, T> DynamicSingletonCounter<'a, T> for DynamicStat<T, BoxSingletonCounter>[src]

Loading content...