Trait platform_info::UNameAPI

source ·
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 osname(&self) -> &OsStr;
}
Expand description

Defines a trait API providing uname (aka “Unix name”) style platform information.

Required Methods§

source

fn sysname(&self) -> &OsStr

The name of this implementation of the operating system.

source

fn nodename(&self) -> &OsStr

The node name (network node hostname) of this machine.

source

fn release(&self) -> &OsStr

The current release level of the operating system.

source

fn version(&self) -> &OsStr

The current version level of the current release.

source

fn machine(&self) -> &OsStr

The name of the current system’s hardware.

source

fn osname(&self) -> &OsStr

The name of the current OS.

Implementors§