/// Primarily useful to construct from argv
Primarily useful to construct from argv
Primarily useful to construct from argv
fn from_str(s: &str) -> TabinResult<Status> {
        use crate::Status::{Critical, Unknown, Warning};
        match s {
            "ok" => Ok(Status::Ok),
            "warning" => Ok(Warning),
            "critical" => Ok(Critical),
            "unknown" => Ok(Unknown),
            _ => Err(TabinError::UnknownValue(format!(
                "Unexpected exit status: {}",
                s
            ))),
        }
    }
fn from_str ( s : & str ) -> TabinResult < Status > { use crate :: Status :: { Critical , Unknown , Warning } ; match s { " " => Ok ( Status :: Ok ) , " " => Ok ( Warning ) , " " => Ok ( Critical ) , " " => Ok ( Unknown ) , _ => Err ( TabinError :: UnknownValue ( format ! ( " " s ) ) ) , } }
Primarily useful to construct from argv
Primarily useful to construct from argv
s
&str