Struct telemetry::keyed::KeyedCount[][src]

pub struct KeyedCount<K> { /* fields omitted */ }

Count histograms.

A Count histogram simply accumulates the numbers passed with record().

With SerializationFormat::SimpleJson, these histograms are serialized as an object, with keys sorted, in which each field is a number.

Implementations

impl<K> KeyedCount<K>[src]

pub fn new(service: &Service, name: String) -> KeyedCount<K>[src]

Create a new KeyedCount histogram with a given name.

Argument name is used as key when processing and exporting the data. Each name must be unique to the Service.

Panics

If name is already used by another histogram in service.

Trait Implementations

impl<K> Clone for KeyedCount<K>[src]

impl<K> KeyedHistogram<K, u32> for KeyedCount<K> where
    K: ToString
[src]

Auto Trait Implementations

impl<K> !RefUnwindSafe for KeyedCount<K>

impl<K> Send for KeyedCount<K> where
    K: Send

impl<K> !Sync for KeyedCount<K>

impl<K> Unpin for KeyedCount<K> where
    K: Unpin

impl<K> !UnwindSafe for KeyedCount<K>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.