pub struct SystemInfo {
pub arch: String,
pub os: String,
}Fields§
§arch: String§os: StringImplementations§
Source§impl SystemInfo
impl SystemInfo
pub fn new() -> Self
pub fn platform_os(&self) -> PlatformOS
pub fn platform_arch(&self) -> PlatformArch
Trait Implementations§
Source§impl Debug for SystemInfo
impl Debug for SystemInfo
Source§impl Default for SystemInfo
impl Default for SystemInfo
Source§fn default() -> SystemInfo
fn default() -> SystemInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SystemInfo
impl RefUnwindSafe for SystemInfo
impl Send for SystemInfo
impl Sync for SystemInfo
impl Unpin for SystemInfo
impl UnwindSafe for SystemInfo
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