[−][src]Struct heim_host::Platform
Host system information.
Provided information
For example, for Linux host command uname -a
returns the following line:
$ uname -a
Linux tardis 5.0.5-arch1-1-ARCH #1 SMP PREEMPT Wed Mar 27 17:53:10 UTC 2019 x86_64 GNU/Linux
Information in this struct for the same host will look like this:
Platform {
system: "Linux",
release: "5.0.5-arch1-1-ARCH",
version: "#1 SMP PREEMPT Wed Mar 27 17:53:10 UTC 2019",
architecture: X86_64,
}
Methods
impl Platform
[src]
pub fn system(&self) -> &str
[src]
Returns system name.
pub fn release(&self) -> &str
[src]
Returns system release.
pub fn version(&self) -> &str
[src]
Returns system version.
pub fn architecture(&self) -> Arch
[src]
Returns system architecture.
Trait Implementations
Auto Trait Implementations
impl Sync for Platform
impl Unpin for Platform
impl Send for Platform
impl UnwindSafe for Platform
impl RefUnwindSafe for Platform
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,