[−][src]Struct rpsutil::system::UtsName
Struct representing uname
Based on the utsname struct in GNU libc
Fields
sysname: String
The name of the operating system in use.
release: String
The current release level of the operating system implementation.
version: String
The current version level within the release of the operating system.
machine: String
The description of the type of hardware that is in use.
nodename: String
The host name of this particular computer.
Returns the same value as the hostname
command on the command line.
domainname: String
The NIS or YP domain name.
Methods
impl UtsName
[src]
pub fn new() -> Result<UtsName, Box<dyn Error>>
[src]
Initializes UtsName with the fields populated.
Returns an instance of UtsName if successful and an Error object if failed.
Examples
assert!(rpsutil::system::UtsName::new().is_ok())
Trait Implementations
Auto Trait Implementations
impl Sync for UtsName
impl Unpin for UtsName
impl Send for UtsName
impl UnwindSafe for UtsName
impl RefUnwindSafe for UtsName
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,