Struct nagiosplugin::CheckResult
source · pub struct CheckResult { /* private fields */ }
Expand description
Represents a single item of a check. Multiple of these are used to form a Resource.
Implementations§
source§impl CheckResult
impl CheckResult
pub fn with_state(self, state: ServiceState) -> Self
pub fn with_message(self, message: impl Into<String>) -> Self
sourcepub fn with_perf_data(self, perf_data: impl Into<PerfString>) -> Self
pub fn with_perf_data(self, perf_data: impl Into<PerfString>) -> Self
Sets the performance data of this result. Takes anything that implements Into<PerfString>
.
This includes PerfData
.
Trait Implementations§
source§impl Clone for CheckResult
impl Clone for CheckResult
source§fn clone(&self) -> CheckResult
fn clone(&self) -> CheckResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CheckResult
impl Debug for CheckResult
source§impl Default for CheckResult
impl Default for CheckResult
source§impl<T: PartialOrd + ToPerfString> From<Metric<T>> for CheckResult
impl<T: PartialOrd + ToPerfString> From<Metric<T>> for CheckResult
source§impl PartialEq for CheckResult
impl PartialEq for CheckResult
source§fn eq(&self, other: &CheckResult) -> bool
fn eq(&self, other: &CheckResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CheckResult
impl StructuralEq for CheckResult
impl StructuralPartialEq for CheckResult
Auto Trait Implementations§
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnwindSafe for CheckResult
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