Enum prometrics::metric::Metric [] [src]

pub enum Metric {
    Counter(Counter),
    Gauge(Gauge),
    Summary(Summary),
    Histogram(Histogram),
}

Variants

Methods

impl Metric
[src]

[src]

Returns the name of this metric.

[src]

Returns tye kind of this metric.

Trait Implementations

impl Debug for Metric
[src]

[src]

Formats the value using the given formatter.

impl Clone for Metric
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<Counter> for Metric
[src]

[src]

Performs the conversion.

impl From<Gauge> for Metric
[src]

[src]

Performs the conversion.

impl From<Histogram> for Metric
[src]

[src]

Performs the conversion.

impl From<Summary> for Metric
[src]

[src]

Performs the conversion.