pub struct Uname(new_utsname);
Expand description
struct utsname
—Return type for uname
.
Tuple Fields§
§0: new_utsname
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
fn to_cstr<'a>(ptr: *const u8) -> &'a CStr
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