pub struct SystemSnapshot {Show 13 fields
pub host_name: Option<String>,
pub operating_system: Option<String>,
pub operating_system_version: Option<String>,
pub locale: Option<String>,
pub timezone: Option<String>,
pub target_triple: String,
pub stdin_is_terminal: bool,
pub is_ci: bool,
pub processor_count: Option<u64>,
pub physical_memory_bytes: u64,
pub boot_time: u64,
pub process_name: Option<String>,
pub extra_fields: Option<Map>,
}Fields§
§host_name: Option<String>Example: grahams-macbook-pro.local
operating_system: Option<String>Example: macOS Version 14.4.1 (Build 23E224)
operating_system_version: Option<String>Example: 14.4.1
locale: Option<String>§timezone: Option<String>§target_triple: String§stdin_is_terminal: bool§is_ci: bool§processor_count: Option<u64>Example: 14
physical_memory_bytes: u64Example: 38654705664
boot_time: u64Unix timestamp of the time the system booted. Example: 1713092739
process_name: Option<String>Example: determinate-nixd
extra_fields: Option<Map>Additional fields to be flattened into the snapshot data
Trait Implementations§
Source§impl Clone for SystemSnapshot
impl Clone for SystemSnapshot
Source§fn clone(&self) -> SystemSnapshot
fn clone(&self) -> SystemSnapshot
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 moreSource§impl Debug for SystemSnapshot
impl Debug for SystemSnapshot
Source§impl Default for SystemSnapshot
impl Default for SystemSnapshot
Auto Trait Implementations§
impl Freeze for SystemSnapshot
impl RefUnwindSafe for SystemSnapshot
impl Send for SystemSnapshot
impl Sync for SystemSnapshot
impl Unpin for SystemSnapshot
impl UnsafeUnpin for SystemSnapshot
impl UnwindSafe for SystemSnapshot
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