Struct telemetry::plain::Ignoring [] [src]

pub struct Ignoring<T> {
    // 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> Ignoring<T>

fn new() -> Ignoring<T>

Create an histogram that ignores any input.

Ignoring histograms are effectively implemented as empty structs, without a back-end, so they take no memory.

Trait Implementations

impl<T> Histogram<T> for Ignoring<T>

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

fn record(&self, value: T)

impl<T> Clone for Ignoring<T>

fn clone(&self) -> Self

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