Struct prometrics::metrics::CounterBuilder [] [src]

pub struct CounterBuilder { /* fields omitted */ }

Counter builder.

Methods

impl CounterBuilder
[src]

[src]

Makes a builder for counters named name.

Important traits for &'a mut W
[src]

Sets the namespace part of the metric name of this.

Important traits for &'a mut W
[src]

Sets the subsystem part of the metric name of this.

Important traits for &'a mut W
[src]

Sets the help of this.

Important traits for &'a mut W
[src]

Adds a label.

Note that name will be validated in the invocation of the finish method.

Important traits for &'a mut W
[src]

Adds a registry to which the resulting counters will be registered.

Important traits for &'a mut W
[src]

Adds the default registry.

[src]

Builds a counter.

Errors

This method will return Err(_) if any of the name of the metric or labels is malformed.

Trait Implementations

impl Debug for CounterBuilder
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for CounterBuilder

impl !Sync for CounterBuilder