#[repr(C)]pub struct UtsNamespace {
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
UTS 命名空间结构体 用于隔离不同任务的主机名和域名设置
Fields§
§sysname: [u8; 65]系统名称
nodename: [u8; 65]主机名
release: [u8; 65]发行版版本
version: [u8; 65]版本信息
machine: [u8; 65]机器类型
domainname: [u8; 65]域名
Trait Implementations§
Source§impl Clone for UtsNamespace
impl Clone for UtsNamespace
Source§fn clone(&self) -> UtsNamespace
fn clone(&self) -> UtsNamespace
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UtsNamespace
impl Debug for UtsNamespace
Source§impl Default for UtsNamespace
impl Default for UtsNamespace
Source§impl PartialEq for UtsNamespace
impl PartialEq for UtsNamespace
impl Eq for UtsNamespace
impl StructuralPartialEq for UtsNamespace
Auto Trait Implementations§
impl Freeze for UtsNamespace
impl RefUnwindSafe for UtsNamespace
impl Send for UtsNamespace
impl Sync for UtsNamespace
impl Unpin for UtsNamespace
impl UnwindSafe for UtsNamespace
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)§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.