Struct stats_traits::dynamic_stat_types::DynamicStat
source · pub struct DynamicStat<T, TStatType> { /* private fields */ }
Expand description
The struct to hold key and stat generators that are later being used in runtime to create new stats that are being held in a map to avoid reconstruction of the same counter.
Implementations§
Trait Implementations§
source§impl<'a, T> DynamicCounter<'a, T> for DynamicStat<T, BoxLocalCounter>
impl<'a, T> DynamicCounter<'a, T> for DynamicStat<T, BoxLocalCounter>
source§fn increment_value(&'a self, value: i64, args: T)
fn increment_value(&'a self, value: i64, args: T)
Dynamic version of
Counter::increment_value
source§impl<'a, T> DynamicHistogram<'a, T> for DynamicStat<T, BoxLocalHistogram>
impl<'a, T> DynamicHistogram<'a, T> for DynamicStat<T, BoxLocalHistogram>
source§impl<'a, T> DynamicSingletonCounter<'a, T> for DynamicStat<T, BoxSingletonCounter>
impl<'a, T> DynamicSingletonCounter<'a, T> for DynamicStat<T, BoxSingletonCounter>
source§fn set_value(&'a self, fb: FacebookInit, value: i64, args: T)
fn set_value(&'a self, fb: FacebookInit, value: i64, args: T)
Dynamic version of
SingletonCounter::set_value
source§fn get_value(&'a self, fb: FacebookInit, args: T) -> Option<i64>
fn get_value(&'a self, fb: FacebookInit, args: T) -> Option<i64>
Dynamic version of
SingletonCounter::get_value
source§fn increment_value(&'a self, fb: FacebookInit, value: i64, args: T)
fn increment_value(&'a self, fb: FacebookInit, value: i64, args: T)
Dynamic version of
SingletonCounter::increment_value
source§impl<'a, T> DynamicTimeseries<'a, T> for DynamicStat<T, BoxLocalTimeseries>
impl<'a, T> DynamicTimeseries<'a, T> for DynamicStat<T, BoxLocalTimeseries>
Auto Trait Implementations§
impl<T, TStatType> !RefUnwindSafe for DynamicStat<T, TStatType>
impl<T, TStatType> Send for DynamicStat<T, TStatType>where
TStatType: Send,
impl<T, TStatType> !Sync for DynamicStat<T, TStatType>
impl<T, TStatType> Unpin for DynamicStat<T, TStatType>where
TStatType: Unpin,
impl<T, TStatType> UnwindSafe for DynamicStat<T, TStatType>where
TStatType: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more