Struct hornet::client::metric::Metric [] [src]

pub struct Metric<T> { /* fields omitted */ }

Singleton metric

Methods

impl<T: MetricType + Clone> Metric<T>
[src]

[src]

Creates a new PCP MMV Metric

The result is an error if the length of name, shorthelp or longhelp exceed 255 bytes.

[src]

Returns the current value of the metric

[src]

Sets the current value of the metric.

If the metric is exported using a client, the value is written to the relevant MMV file.

If the metric isn't exported, this method will still succeed and update the value.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<T> AsMut<Metric<T>> for Metric<T>
[src]

[src]

Performs the conversion.