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
Implementors
impl<T, O> ResourceMetric for T where
O: ToPerfString,
T: Metric<Output = O> + ToPerfString,