Function about_system::os

source ·
pub fn os() -> Result<OSVersion>
Expand description

Get the operating system.

Remarks

Retrieval of the distribution name is made through the os-release file. If no os-release file is found, the distribution field will be empty.

Requirements

uname() system call.