Struct nagiosplugin::PerfString
source · pub struct PerfString(/* private fields */);
Expand description
Newtype wrapper around a string to ensure only valid strings end up in the final output. This is used for the performance data / metric part of the output.
Implementations§
Trait Implementations§
source§impl Clone for PerfString
impl Clone for PerfString
source§fn clone(&self) -> PerfString
fn clone(&self) -> PerfString
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 PerfString
impl Debug for PerfString
source§impl<T: ToPerfString> From<PerfData<T>> for PerfString
impl<T: ToPerfString> From<PerfData<T>> for PerfString
source§impl Ord for PerfString
impl Ord for PerfString
source§fn cmp(&self, other: &PerfString) -> Ordering
fn cmp(&self, other: &PerfString) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PerfString
impl PartialEq for PerfString
source§fn eq(&self, other: &PerfString) -> bool
fn eq(&self, other: &PerfString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PerfString
impl PartialOrd for PerfString
source§fn partial_cmp(&self, other: &PerfString) -> Option<Ordering>
fn partial_cmp(&self, other: &PerfString) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for PerfString
impl StructuralPartialEq for PerfString
Auto Trait Implementations§
impl Freeze for PerfString
impl RefUnwindSafe for PerfString
impl Send for PerfString
impl Sync for PerfString
impl Unpin for PerfString
impl UnwindSafe for PerfString
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