[][src]Struct heim::host::Platform

pub struct Platform(_);

Host system information.

Provided information

For example, for Linux host command uname -a returns the following line:

$ uname -a
Linux tardis 5.0.5-arch1-1-ARCH #1 SMP PREEMPT Wed Mar 27 17:53:10 UTC 2019 x86_64 GNU/Linux

Information in this struct for the same host will look like this:

Platform {
   system: "Linux",
   release: "5.0.5-arch1-1-ARCH",
   version: "#1 SMP PREEMPT Wed Mar 27 17:53:10 UTC 2019",
   hostname: "tardis",
   architecture: X86_64,

Windows example:

Platform {
    system: "Windows",
    release: "10",
    version: "17763",
    hostname: "WINDEV1905EVAL",
    architecture: X86_64,


impl Platform[src]

pub fn system(&self) -> &str[src]

Returns system name.

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

Returns system release.

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

Returns system version.

pub fn hostname(&self) -> &str[src]

Returns system hostname.

pub fn architecture(&self) -> Arch[src]

Returns system architecture.

Trait Implementations

impl Debug for Platform[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T> Same<T> for T

type Output = T

Should always be Self