Enum nagiosplugin::Unit
source · pub enum Unit {
None,
Seconds,
Milliseconds,
Microseconds,
Percentage,
Bytes,
Kilobytes,
Megabytes,
Gigabytes,
Terabytes,
Counter,
Other(UnitString),
}
Expand description
This represents the unit for a metric. It can be one of the predefined units or a custom one. See Nagios Plugin Development Guidelines for more information.
Variants§
None
Seconds
Milliseconds
Microseconds
Percentage
Bytes
Kilobytes
Megabytes
Gigabytes
Terabytes
Counter
Other(UnitString)
Trait Implementations§
source§impl Ord for Unit
impl Ord for Unit
source§impl PartialEq for Unit
impl PartialEq for Unit
source§impl PartialOrd for Unit
impl PartialOrd for Unit
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 Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
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