pub struct SystemInfo {
pub os: String,
pub os_version: Option<String>,
pub arch: String,
pub locale: Option<String>,
}Expand description
Best-effort snapshot of the host environment, detected at call time.
Every field is best-effort; a probe that fails contributes None
(or, for the always-available os / arch, the compile-time
target) rather than failing the heartbeat.
Fields§
§os: Stringstd::env::consts::OS — "macos", "windows", "linux", …
os_version: Option<String>Human OS version, e.g. "15.5.0". None when the OS probe
can’t determine it.
arch: Stringstd::env::consts::ARCH — "aarch64", "x86_64", …
locale: Option<String>BCP-47 system locale, e.g. "en-NZ". None when unset /
undetectable (common for GUI-launched apps on some platforms).
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 (const: unstable) · 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 SystemInfo
impl Debug for SystemInfo
impl Eq for SystemInfo
Source§impl PartialEq for SystemInfo
impl PartialEq for SystemInfo
Source§fn eq(&self, other: &SystemInfo) -> bool
fn eq(&self, other: &SystemInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SystemInfo
Auto Trait Implementations§
impl Freeze for SystemInfo
impl RefUnwindSafe for SystemInfo
impl Send for SystemInfo
impl Sync for SystemInfo
impl Unpin for SystemInfo
impl UnsafeUnpin 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