pub struct SystemInfo {
pub os: &'static str,
pub os_family: &'static str,
pub arch: &'static str,
pub rust_version: String,
}Expand description
System information for debugging.
Fields§
§os: &'static strOperating system name (e.g., “linux”, “macos”, “windows”).
os_family: &'static strOperating system family (e.g., “unix”, “windows”).
arch: &'static strCPU architecture (e.g., “x86_64”, “aarch64”).
rust_version: StringRust version used to compile.
Implementations§
Source§impl SystemInfo
impl SystemInfo
Trait Implementations§
Source§impl Clone for SystemInfo
impl Clone for SystemInfo
Source§fn clone(&self) -> SystemInfo
fn clone(&self) -> SystemInfo
Returns a duplicate 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 moreAuto 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