Struct dipstick::DoubleSink
[−]
[src]
pub struct DoubleSink<C1: MetricSink, C2: MetricSink> { /* fields omitted */ }
Hold the two target sinks.
Multiple DoubleSink
s can be combined if more than two sinks are needed.
Methods
impl<C1: MetricSink, C2: MetricSink> DoubleSink<C1, C2>
[src]
fn new(sink_a: C1, sink_b: C2) -> DoubleSink<C1, C2>
[src]
Create a single sink out of two disparate sinks.
Trait Implementations
impl<C1: Debug + MetricSink, C2: Debug + MetricSink> Debug for DoubleSink<C1, C2>
[src]
impl<C1: MetricSink, C2: MetricSink> MetricSink for DoubleSink<C1, C2>
[src]
type Metric = DoubleKey<C1::Metric, C2::Metric>
Metric identifier type of this sink.
type Writer = DoubleWriter<C1, C2>
Metric writer type of this sink.
fn new_metric<S: AsRef<str>>(
&self,
kind: MetricKind,
name: S,
sampling: Rate
) -> Self::Metric
[src]
&self,
kind: MetricKind,
name: S,
sampling: Rate
) -> Self::Metric
Define a new sink-specific metric that can be used for writing values.
fn new_writer(&self) -> Self::Writer
[src]
Open a metric writer to write metrics to. Some sinks reuse the same writer while others allocate resources for every new writer. Read more