pub struct UtsName {
pub sysname: CString,
pub nodename: CString,
pub release: CString,
pub version: CString,
pub machine: CString,
pub domainname: CString,
}Expand description
Informations machine retournées par uname(2).
Chaque champ est une chaîne C-compatible convertie en CString
propriétaire. Le contenu est défini par le kernel ; aucun des champs
n’est garanti UTF-8.
Fields§
§sysname: CStringNom du système d’exploitation (typiquement "Linux").
nodename: CStringNom de nœud réseau du système (hostname).
release: CStringVersion du kernel (ex. "5.15.0-91-generic").
version: CStringInformations de build du kernel.
machine: CStringArchitecture matérielle (ex. "x86_64", "aarch64").
domainname: CStringNom de domaine NIS (Linux-spécifique). Vide si non défini.
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 UnsafeUnpin for UtsName
impl UnwindSafe for UtsName
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