[][src]Struct rpsutil::system::UtsName

pub struct UtsName {
    pub sysname: String,
    pub release: String,
    pub version: String,
    pub machine: String,
    pub nodename: String,
    pub domainname: String,
}

Struct representing uname

Based on the utsname struct in GNU libc

Fields

sysname: String

The name of the operating system in use.

release: String

The current release level of the operating system implementation.

version: String

The current version level within the release of the operating system.

machine: String

The description of the type of hardware that is in use.

nodename: String

The host name of this particular computer.

Returns the same value as the hostname command on the command line.

domainname: String

The NIS or YP domain name.

Methods

impl UtsName[src]

pub fn new() -> Result<UtsName, Box<dyn Error>>[src]

Initializes UtsName with the fields populated.

Returns an instance of UtsName if successful and an Error object if failed.

Examples

assert!(rpsutil::system::UtsName::new().is_ok())

Trait Implementations

impl Debug for UtsName[src]

Auto Trait Implementations

impl Sync for UtsName

impl Unpin for UtsName

impl Send for UtsName

impl UnwindSafe for UtsName

impl RefUnwindSafe for UtsName

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]