pub struct Uname(/* private fields */);
Expand description
struct utsname
—Return type for uname
.
Implementations§
source§impl Uname
impl Uname
sourcepub fn nodename(&self) -> &CStr
pub fn nodename(&self) -> &CStr
nodename
—Name with vague meaning
This is intended to be a network name, however it’s unable to convey information about hosts that have multiple names, or any information about where the names are visible.
This corresponds to the gethostname
value.
sourcepub fn domainname(&self) -> &CStr
pub fn domainname(&self) -> &CStr
domainname
—NIS or YP domain identifier
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Uname
impl RefUnwindSafe for Uname
impl Send for Uname
impl Sync for Uname
impl Unpin for Uname
impl UnwindSafe for Uname
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more