fn str_to_client_type(s: &str) -> Result<ClientType, Error> {
    Ok(match s {
        "wlan" => ClientType::Wlan,
        _ => bail!("Unsupported client type '{}'", s),
    })
}
/// Parses a string into a `ClientType` variant.
///
/// To successfully parse, the string must be a lower snake case representation of the `ClientType`
/// variant.
Parses a string into a `ClientType` variant.
To successfully parse, the string must be a lower snake case representation of the `ClientType`
variant.
Parses a string into a ` ClientType ` variant . To successfully parse the string must be a lower snake case representation of the ` ClientType ` variant .
fn str_to_client_type(s: &str) -> Result<ClientType, Error> {
    Ok(match s {
        "wlan" => ClientType::Wlan,
        _ => bail!("Unsupported client type '{}'", s),
    })
}
fn str_to_client_type ( s : & str ) -> Result < ClientType , Error > { Ok ( match s { " " => ClientType :: Wlan , _ => bail ! ( " " s ) , } ) }
Parses a string into a `ClientType` variant.
Parses a string into a ` ClientType ` variant .
s
&str
s
&str