Struct sc_telemetry::SysInfo
source · pub struct SysInfo {
pub cpu: Option<String>,
pub memory: Option<u64>,
pub core_count: Option<u32>,
pub linux_kernel: Option<String>,
pub linux_distro: Option<String>,
pub is_virtual_machine: Option<bool>,
}
Expand description
Hardware and software information for the node.
Gathering most of this information is highly OS-specific, so most of the fields here are optional.
Fields§
§cpu: Option<String>
The exact CPU model.
memory: Option<u64>
The total amount of memory, in bytes.
core_count: Option<u32>
The number of physical CPU cores.
linux_kernel: Option<String>
The Linux kernel version.
linux_distro: Option<String>
The exact Linux distribution used.
is_virtual_machine: Option<bool>
Whether the node’s running under a virtual machine.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SysInfo
impl Send for SysInfo
impl Sync for SysInfo
impl Unpin for SysInfo
impl UnwindSafe for SysInfo
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