[−][src]Struct coreutils_core::os::utsname::UtsName
A struct that holds several system informations, like the system name, host name, etc.
Methods
impl UtsName
[src]
pub fn new() -> Result<Self, Error>
[src]
Generates a new UtsName
of the system.
Errors
If a internal call set a errno (I/O OS error), an error variant will be returned.
pub fn system_name(&self) -> &BStr
[src]
Get system name.
pub fn node_name(&self) -> &BStr
[src]
Get host name of the machine.
pub fn release(&self) -> &BStr
[src]
Get the release level of the operating system.
pub fn version(&self) -> &BStr
[src]
Get the version level of this release of the operating system.
pub fn machine(&self) -> &BStr
[src]
Get the type of the current hardware platform.
Trait Implementations
impl Clone for UtsName
[src]
impl Debug for UtsName
[src]
impl Display for UtsName
[src]
impl Eq for UtsName
[src]
impl From<UtsName> for utsname
[src]
impl Hash for UtsName
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for UtsName
[src]
fn cmp(&self, other: &UtsName) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<UtsName> for UtsName
[src]
impl PartialOrd<UtsName> for UtsName
[src]
fn partial_cmp(&self, other: &UtsName) -> Option<Ordering>
[src]
fn lt(&self, other: &UtsName) -> bool
[src]
fn le(&self, other: &UtsName) -> bool
[src]
fn gt(&self, other: &UtsName) -> bool
[src]
fn ge(&self, other: &UtsName) -> bool
[src]
impl StructuralEq for UtsName
[src]
impl StructuralPartialEq for UtsName
[src]
impl TryFrom<utsname> for UtsName
[src]
Auto Trait Implementations
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 T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,