Type Definition dipstick::DoubleSink
[−]
[src]
type DoubleSink<S1, S2> = (S1, S2);
Hold the two target sinks.
Multiple DoubleSink
s can be combined if more than two sinks are needed.
Trait Implementations
impl<M1, S1, M2, S2> Sink<DoubleKey<M1, M2>> for DoubleSink<S1, S2> where
S1: Sink<M1>,
S2: Sink<M2>,
M1: 'static + Clone + Send + Sync,
M2: 'static + Clone + Send + Sync,
[src]
S1: Sink<M1>,
S2: Sink<M2>,
M1: 'static + Clone + Send + Sync,
M2: 'static + Clone + Send + Sync,
fn new_metric(
&self,
kind: Kind,
name: &str,
sampling: Rate
) -> DoubleKey<M1, M2>
[src]
&self,
kind: Kind,
name: &str,
sampling: Rate
) -> DoubleKey<M1, M2>
Define a new metric instrument of the requested kind, with the specified name and sample rate.
fn new_scope(&self, auto_flush: bool) -> ScopeFn<DoubleKey<M1, M2>>
[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