Enum nagiosplugin::State [−][src]
pub enum State { Ok, Warning, Critical, Unknown, }
Represents a service state from nagios.
Variants
Ok
Warning
Critical
Unknown
Methods
impl State
[src]
impl State
pub fn exit_code(&self) -> i32
[src]
pub fn exit_code(&self) -> i32
Returns the corresponding nagios exit code to signal the service state of self.
Trait Implementations
impl Clone for State
[src]
impl Clone for State
fn clone(&self) -> State
[src]
fn clone(&self) -> State
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for State
[src]
impl Debug for State
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for State
[src]
impl PartialEq for State
fn eq(&self, other: &State) -> bool
[src]
fn eq(&self, other: &State) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl ToString for State
[src]
impl ToString for State
impl PartialOrd for State
[src]
impl PartialOrd for State
fn partial_cmp(&self, other: &State) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &State) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
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 more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more