Struct nix::sys::utsname::UtsName
#[repr(transparent)]
pub struct UtsName(_);
Documentation
Describes the running system. Return type of uname
.
Implementations
impl UtsName
pub fn sysname(&Self) -> &str
Name of the operating system implementation
pub fn nodename(&Self) -> &str
Network name of this machine.
pub fn release(&Self) -> &str
Release level of the operating system.
pub fn version(&Self) -> &str
Version level of the operating system.
pub fn machine(&Self) -> &str
Machine hardware platform.
Trait Implementations
impl Debug for UtsName
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Hash for UtsName
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl StructuralEq for UtsName
impl StructuralPartialEq for UtsName
Auto Trait Implementations
impl RefUnwindSafe for UtsName
impl UnwindSafe for UtsName
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T