Trait nagiosplugin::ResourceMetric[][src]

pub trait ResourceMetric {
    fn perf_string(&self) -> String;
fn name(&self) -> &str;
fn state(&self) -> Option<State>; }

Represents a single metric of a resource. You shouldn’t need to implement this by yourself since the crate provided types already implement this.

Required methods

fn perf_string(&self) -> String[src]

fn name(&self) -> &str[src]

fn state(&self) -> Option<State>[src]

Loading content...

Implementors

impl<T, O> ResourceMetric for T where
    O: ToPerfString,
    T: Metric<Output = O> + ToPerfString
[src]

Loading content...