[][src]Struct stats_traits::dynamic_stat_types::DynamicStat

pub struct DynamicStat<T, TStatType> { /* fields omitted */ }

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]

Trait Implementations

impl<'a, T> DynamicCounter<'a, T> for DynamicStat<T, BoxCounter>[src]

impl<'a, T> DynamicHistogram<'a, T> for DynamicStat<T, BoxHistogram>[src]

impl<'a, T> DynamicSingletonCounter<'a, T> for DynamicStat<T, BoxSingletonCounter>[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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,