Struct dipstick::FnSink
[−]
[src]
pub struct FnSink<M> where
M: Send + Sync, { /* fields omitted */ }
FnSink delegates metric creation and scoping to the functions or closures it was provided upon its creation.
Trait Implementations
impl<M> Debug for FnSink<M> where
M: Send + Sync,
[src]
M: Send + Sync,
impl<M> Sink<M> for FnSink<M> where
M: Clone + Send + Sync,
[src]
M: Clone + Send + Sync,
fn new_metric(&self, kind: Kind, name: &str, sampling: Rate) -> 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<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