Struct prometrics::metrics::GaugeBuilder [] [src]

pub struct GaugeBuilder { /* fields omitted */ }

Gauge builder.

Methods

impl GaugeBuilder
[src]

[src]

Makes a builder for gauges 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 gauges will be registered.

Important traits for &'a mut W
[src]

Adds the default registry.

Important traits for &'a mut W
[src]

Sets the initial value of resulting gauges.

[src]

Builds a gauge.

Errors

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

Trait Implementations

impl Debug for GaugeBuilder
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for GaugeBuilder

impl !Sync for GaugeBuilder