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]

[src]

Formats the value using the given formatter.

impl<M> Sink<M> for FnSink<M> where
    M: 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