Struct dipstick::SampleSink
[−]
[src]
pub struct SampleSink<S> { /* fields omitted */ }
A sampling sink adapter.
Trait Implementations
impl<S: Debug> Debug for SampleSink<S>
[src]
impl<M, S> Sink<Sample<M>> for SampleSink<S> where
S: Sink<M>,
M: 'static + Clone + Send + Sync,
[src]
S: Sink<M>,
M: 'static + Clone + Send + Sync,
fn new_metric(&self, kind: Kind, name: &str, sampling: Rate) -> Sample<M>
[src]
Define a new metric instrument of the requested kind, with the specified name and sample rate.
fn new_scope(&self, auto_flush: bool) -> ScopeFn<Sample<M>>
[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