Struct dipstick::DoubleSink [] [src]

pub struct DoubleSink<C1: MetricSink, C2: MetricSink> { /* fields omitted */ }

Hold the two target sinks. Multiple DoubleSinks can be combined if more than two sinks are needed.

Methods

impl<C1: MetricSink, C2: MetricSink> DoubleSink<C1, C2>
[src]

[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]

[src]

Formats the value using the given formatter.

impl<C1: MetricSink, C2: MetricSink> MetricSink for DoubleSink<C1, C2>
[src]

Metric identifier type of this sink.

Metric writer type of this sink.

[src]

Define a new sink-specific metric that can be used for writing values.

[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