Expand description
Read information about the operating system.
Enums§
Functions§
- arch
- Returns the current operating system architecture, see std::env::consts::ARCH.
- exe_
extension - Returns the file extension, if any, used for executable binaries on this platform. Example value is
exe
, see std::env::consts::EXE_EXTENSION. - family
- Returns the current operating system family, see std::env::consts::FAMILY.
- hostname
- Returns the current operating system hostname.
- init
- locale
- Returns the current operating system locale with the
BCP-47
language tag. If the locale couldn’t be obtained,None
is returned instead. - platform
- Returns a string describing the specific operating system in use, see std::env::consts::OS.
- type_
- Returns the current operating system type.
- version
- Returns the current operating system version.