[−][src]Struct stats_traits::dynamic_stat_types::DynamicStat
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
impl<T, TStatType> DynamicStat<T, TStatType>
[src]
pub fn new(
key_generator: fn(_: &T) -> String,
stat_generator: fn(_: &str) -> TStatType
) -> Self
[src]
key_generator: fn(_: &T) -> String,
stat_generator: fn(_: &str) -> TStatType
) -> Self
Trait Implementations
impl<'a, T> DynamicCounter<'a, T> for DynamicStat<T, BoxCounter>
[src]
fn increment_value(&'a self, value: i64, args: T)
[src]
impl<'a, T> DynamicHistogram<'a, T> for DynamicStat<T, BoxHistogram>
[src]
fn add_value(&'a self, value: i64, args: T)
[src]
fn add_repeated_value(&'a self, value: i64, nsamples: u32, args: T)
[src]
impl<'a, T> DynamicSingletonCounter<'a, T> for DynamicStat<T, BoxSingletonCounter>
[src]
fn set_value(&'a self, fb: FacebookInit, value: i64, args: T)
[src]
fn get_value(&'a self, fb: FacebookInit, args: T) -> Option<i64>
[src]
impl<'a, T> DynamicTimeseries<'a, T> for DynamicStat<T, BoxTimeseries>
[src]
Auto Trait Implementations
impl<T, TStatType> !RefUnwindSafe for DynamicStat<T, TStatType>
impl<T, TStatType> Send for DynamicStat<T, TStatType> where
TStatType: Send,
TStatType: Send,
impl<T, TStatType> !Sync for DynamicStat<T, TStatType>
impl<T, TStatType> Unpin for DynamicStat<T, TStatType> where
TStatType: Unpin,
TStatType: Unpin,
impl<T, TStatType> UnwindSafe for DynamicStat<T, TStatType> where
TStatType: UnwindSafe,
TStatType: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,