scoop:scoop.platform:0.1.0
scoop.platform.system
API
-
enum
Architecture
The processor architecture selected by the compilation target.
-
struct
NativeError
A native error domain and code with optional underlying system code.
-
enum
NativeErrorDomain
Identifies how a native error code must be interpreted.
-
enum
OperatingSystem
The operating-system family selected by the compilation target.
-
class
OsString
An immutable snapshot of operating-system bytes. It can represent names that are not valid UTF-8; decoding policy is explicit.
-
enum
PlatformErrorKind
A portable classification of operating-system failures, with native details retained separately.
-
class
PlatformException
A platform-operation failure with portable kind, optional native error, and native-byte path or operation context.
-
property
architecture
The architecture of the compiled target.
-
property
logicalProcessorCount
The number of logical processors reported by the operating system.
-
property
operatingSystem
The operating-system family of the compiled target.
-
function
systemVersion
Returns the operating system's release string from uname.