[][src]Trait stats::prelude::DynamicSingletonCounter

pub trait DynamicSingletonCounter<'a, T> {
    pub fn set_value(&'a self, fb: FacebookInit, value: i64, args: T);
pub 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

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

Dynamic version of SingletonCounter::set_value

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

Dynamic version of SingletonCounter::get_value

Loading content...

Implementations on Foreign Types

impl<T> DynamicSingletonCounter<'static, T> for LocalKey<DynamicStat<T, Box<dyn SingletonCounter + 'static + Sync + Send, Global>>>[src]

impl<'a, T> DynamicSingletonCounter<'a, T> for DynamicStat<T, Box<dyn SingletonCounter + 'static + Sync + Send, Global>>[src]

Loading content...

Implementors

Loading content...