Function os_type::current_platform
source · [−]pub fn current_platform() -> OSInformation
Expand description
Returns the current operating system type
#Example
use os_type;
let os = os_type::current_platform();
println!("Type: {:?}", os.os_type);
println!("Version: {}", os.version);