Skip to main content

leak_os_name

Function leak_os_name 

Source
fn leak_os_name(os: &str) -> &'static str
Expand description

Convert a runtime OS string (std::env::consts::OS produces &str) to a &'static str suitable for the EncodeError::Unsupported field. The set of possible values is bounded so we map each known one explicitly; anything else falls through to "other".