Represents operating system kernels
pub type OsFamily { WindowsNt Linux Darwin FreeBsd Other(String) }
WindowsNt
Linux
Darwin
FreeBsd
Other(String)
pub fn family() -> OsFamily
Returns the kernel of the host operating system.
Unknown kernels are reported as Other(String); e.g. Other("sunos").
Other("sunos")
family() // -> Linux
family() // -> Darwin
family() // -> Other("sunos")