Struct linux_info::system::OsRelease[][src]

pub struct OsRelease { /* fields omitted */ }

Implementations

impl OsRelease[src]

pub fn read() -> Result<Self>[src]

Reads hostname from /proc/sys/kernel/osrelease.

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

Get os release as str.

pub fn into_string(self) -> String[src]

Get os release as raw String (may contain whitespace).

Trait Implementations

impl Clone for OsRelease[src]

impl Debug for OsRelease[src]

impl Eq for OsRelease[src]

impl PartialEq<OsRelease> for OsRelease[src]

impl StructuralEq for OsRelease[src]

impl StructuralPartialEq for OsRelease[src]

Auto Trait Implementations

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, 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.