Struct dipstick::sampling::SamplingSink [] [src]

pub struct SamplingSink<S> { /* fields omitted */ }

A sampling sink adapter.

Trait Implementations

impl<M, S> Sink<Sampled<M>> for SamplingSink<S> where
    S: Sink<M>,
    M: 'static + 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