[][src]Struct coreutils_core::os::utsname::UtsName

pub struct UtsName { /* fields omitted */ }

A struct that holds several system informations, like the system name, host name, etc.

Methods

impl UtsName[src]

pub fn new() -> Result<Self, Error>[src]

Generates a new UtsName of the system.

Errors

If a internal call set a errno (I/O OS error), an error variant will be returned.

pub fn system_name(&self) -> &BStr[src]

Get system name.

pub fn node_name(&self) -> &BStr[src]

Get host name of the machine.

pub fn release(&self) -> &BStr[src]

Get the release level of the operating system.

pub fn version(&self) -> &BStr[src]

Get the version level of this release of the operating system.

pub fn machine(&self) -> &BStr[src]

Get the type of the current hardware platform.

Trait Implementations

impl Clone for UtsName[src]

impl Debug for UtsName[src]

impl Display for UtsName[src]

impl Eq for UtsName[src]

impl From<UtsName> for utsname[src]

impl Hash for UtsName[src]

impl Ord for UtsName[src]

impl PartialEq<UtsName> for UtsName[src]

impl PartialOrd<UtsName> for UtsName[src]

impl StructuralEq for UtsName[src]

impl StructuralPartialEq for UtsName[src]

impl TryFrom<utsname> for UtsName[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for UtsName

impl Send for UtsName

impl Sync for UtsName

impl Unpin for UtsName

impl UnwindSafe for UtsName

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.