#[repr(C)]pub struct UtsName {
pub sysname: [u8; 65],
pub nodename: [u8; 65],
pub release: [u8; 65],
pub version: [u8; 65],
pub machine: [u8; 65],
pub domainname: [u8; 65],
}Expand description
Linux utsname structure for uname system call This structure must match Linux’s struct utsname layout
Fields§
§sysname: [u8; 65]System name (e.g., “Linux”)
nodename: [u8; 65]Node name (hostname)
release: [u8; 65]Release (kernel version)
version: [u8; 65]Version (kernel build info)
machine: [u8; 65]Machine (hardware architecture)
domainname: [u8; 65]Domain name (GNU extension)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UtsName
impl RefUnwindSafe for UtsName
impl Send for UtsName
impl Sync for UtsName
impl Unpin for UtsName
impl UnwindSafe for UtsName
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)