Struct dipstick::MetricCache [] [src]

pub struct MetricCache<M, S> { /* fields omitted */ }

A cache to help with ad-hoc defined metrics Does not alter the values of the metrics

Trait Implementations

impl<M, S> Debug for MetricCache<M, S> where
    S: Debug
[src]

[src]

Formats the value using the given formatter.

impl<M, S> Sink<M> for MetricCache<M, S> where
    S: Sink<M>,
    M: 'static + Clone + Send + Sync
[src]

[src]

Define a new metric instrument of the requested kind, with the specified name and sample rate.

[src]

Returns a callback function to send scope commands. Writes can be performed by passing Some((&Metric, Value)) Flushes can be performed by passing None Read more