Struct utsname

#[repr(C)]
pub struct utsname { pub sysname: [c_char; 65], pub nodename: [c_char; 65], pub release: [c_char; 65], pub version: [c_char; 65], pub machine: [c_char; 65], pub domainname: [c_char; 65] }

Fields

sysname: [c_char; 65]
nodename: [c_char; 65]
release: [c_char; 65]
version: [c_char; 65]
machine: [c_char; 65]
domainname: [c_char; 65]

Trait Implementations

impl Clone for utsname

fn clone(&self) -> utsname

impl Copy for utsname

impl Debug for utsname

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for utsname

impl Hash for utsname

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for utsname

fn eq(&self, other: &utsname) -> bool

impl StructuralPartialEq for utsname

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

impl<T> Any for utsname where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for utsname where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for utsname where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for utsname where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for utsname

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for utsname where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for utsname where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for utsname where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>