Struct platform_info::PlatformInfo
source · pub struct PlatformInfo {
pub utsname: UTSName,
/* private fields */
}
Expand description
Handles initial retrieval and holds cached information for the current platform (a Unix-like OS in this case).
Fields§
§utsname: UTSName
Contains the cached results of the utsname()
system call.
Trait Implementations§
source§impl Clone for PlatformInfo
impl Clone for PlatformInfo
source§fn clone(&self) -> PlatformInfo
fn clone(&self) -> PlatformInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PlatformInfo
impl Debug for PlatformInfo
source§impl PartialEq for PlatformInfo
impl PartialEq for PlatformInfo
source§fn eq(&self, other: &PlatformInfo) -> bool
fn eq(&self, other: &PlatformInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PlatformInfoAPI for PlatformInfo
impl PlatformInfoAPI for PlatformInfo
source§fn new() -> Result<Self, PlatformInfoError>
fn new() -> Result<Self, PlatformInfoError>
Creates a new instance of
On some platforms, it is possible for this function to fail.
PlatformInfo
.
On some platforms, it is possible for this function to fail.
source§impl UNameAPI for PlatformInfo
impl UNameAPI for PlatformInfo
impl Eq for PlatformInfo
impl StructuralPartialEq for PlatformInfo
Auto Trait Implementations§
impl Freeze for PlatformInfo
impl RefUnwindSafe for PlatformInfo
impl Send for PlatformInfo
impl Sync for PlatformInfo
impl Unpin for PlatformInfo
impl UnwindSafe for PlatformInfo
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