Struct linux_info::system::Hostname
source · [−]pub struct Hostname { /* private fields */ }Expand description
Read the hostname from /proc/sys/kernel/hostname.
Implementations
sourceimpl Hostname
impl Hostname
sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Get hostname as raw String (may contain whitespace).
Trait Implementations
impl Eq for Hostname
impl StructuralEq for Hostname
impl StructuralPartialEq for Hostname
Auto Trait Implementations
impl RefUnwindSafe for Hostname
impl Send for Hostname
impl Sync for Hostname
impl Unpin for Hostname
impl UnwindSafe for Hostname
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