Struct linux_info::system::OsRelease
source · [−]pub struct OsRelease { /* private fields */ }Expand description
Read the hostname from /proc/sys/kernel/osrelease.
Implementations
sourceimpl OsRelease
impl OsRelease
sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Get os release as raw String (may contain whitespace).
Trait Implementations
impl Eq for OsRelease
impl StructuralEq for OsRelease
impl StructuralPartialEq for OsRelease
Auto Trait Implementations
impl RefUnwindSafe for OsRelease
impl Send for OsRelease
impl Sync for OsRelease
impl Unpin for OsRelease
impl UnwindSafe for OsRelease
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more