Struct telemetry::keyed::KeyedIgnoring [] [src]

pub struct KeyedIgnoring<T, U> {
    // some fields omitted
}

A histogram that ignores any input.

Useful for histograms that can be activated/deactivated either at compile-time (e.g. because they are attached to specific versions of the application) or during startup (e.g. depending on command-line options).

Methods

impl<T, U> KeyedIgnoring<T, U>

fn new() -> KeyedIgnoring<T, U>

Trait Implementations

impl<K, T> KeyedHistogram<K, T> for KeyedIgnoring<K, T>

fn record_cb<F>(&self, _: F) where F: FnOnce() -> Option<(K, T)>

fn record(&self, key: K, value: T)

impl<T, U> Clone for KeyedIgnoring<T, U>

fn clone(&self) -> Self

fn clone_from(&mut self, source: &Self)