pub trait UNameAPI {
// Required methods
fn sysname(&self) -> &OsStr;
fn nodename(&self) -> &OsStr;
fn release(&self) -> &OsStr;
fn version(&self) -> &OsStr;
fn machine(&self) -> &OsStr;
fn processor(&self) -> &OsStr;
fn osname(&self) -> &OsStr;
}Expand description
Defines a trait API providing uname (aka “Unix name”) style platform information.
Required Methods§
Sourcefn processor(&self) -> &OsStr
fn processor(&self) -> &OsStr
The processor type (architecture) of the current system.
Maps machine architecture strings to GNU coreutils-compatible processor types. For example, “arm64” may map to “arm”, “x86_64” to “x86_64”, etc. This provides more semantically meaningful processor information than the raw machine string in some contexts.