pub fn exit_code(&self) -> i32 {
        match self {
            &State::Ok => 0,
            &State::Warning => 1,
            &State::Critical => 2,
            &State::Unknown => 3,
        }
    }
/// Returns the corresponding nagios exit code to signal the service state of self.
Returns the corresponding nagios exit code to signal the service state of self.
Returns the corresponding nagios exit code to signal the service state of self .
pub fn exit_code(&self) -> i32 {
        match self {
            &State::Ok => 0,
            &State::Warning => 1,
            &State::Critical => 2,
            &State::Unknown => 3,
        }
    }
pub fn exit_code ( & self ) -> i32 { match self { & State :: Ok => 0 , & State :: Warning => 1 , & State :: Critical => 2 , & State :: Unknown => 3 , } }
Returns the corresponding nagios exit code to signal the service state of self.
Returns the corresponding nagios exit code to signal the service state of self .
&self
&self