Struct nagiosplugin::PerfData
source · pub struct PerfData<T> { /* private fields */ }
Expand description
Represents a single performance metric.
Implementations§
source§impl<T: ToPerfString> PerfData<T>
impl<T: ToPerfString> PerfData<T>
pub fn new(name: impl Into<String>, value: T) -> Self
pub fn with_thresholds(self, warning: Option<T>, critical: Option<T>) -> Self
pub fn with_minimum(self, minimum: T) -> Self
pub fn with_maximum(self, maximum: T) -> Self
pub fn with_unit(self, unit: Unit) -> Self
Trait Implementations§
source§impl<T: ToPerfString> From<PerfData<T>> for PerfString
impl<T: ToPerfString> From<PerfData<T>> for PerfString
Auto Trait Implementations§
impl<T> RefUnwindSafe for PerfData<T>where
T: RefUnwindSafe,
impl<T> Send for PerfData<T>where
T: Send,
impl<T> Sync for PerfData<T>where
T: Sync,
impl<T> Unpin for PerfData<T>where
T: Unpin,
impl<T> UnwindSafe for PerfData<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more