Expand description
Read information about the operating system.
Enums§
- Error
- All errors that can occur while running the os plugin.
- OsType
- The type of the current operating system, as returned by
type_. - Version
- Operating system version.
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
- Initializes the plugin.
- locale
- Returns the current operating system locale with the
BCP-47language tag. If the locale couldn’t be obtained,Noneis 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.