Function whoami::fallible::distro

source ·
pub fn distro() -> Result<String>
Expand description

Get the name of the operating system distribution and (possibly) version.

Example: “Windows 10” or “Fedora 26 (Workstation Edition)”