[]Trait stats::prelude::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<'a, T> DynamicSingletonCounter<'a, T> for DynamicStat<T, Box<dyn SingletonCounter + 'static + Send + Sync>>

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

Loading content...

Implementors

Loading content...