[][src]Trait nagiosplugin::ResourceMetric

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

fn name(&self) -> &str

fn state(&self) -> Option<State>

Loading content...

Implementors

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

Loading content...