pub struct SystemInfo {Show 17 fields
pub os_name: String,
pub os_version: String,
pub kernel_version: String,
pub cpu_model: String,
pub num_cpus: u32,
pub total_memory: u64,
pub available_memory: u64,
pub used_memory: u64,
pub free_memory: u64,
pub total_swap: u64,
pub used_swap: u64,
pub free_swap: u64,
pub uptime: u64,
pub loadavg_one: f32,
pub loadavg_five: f32,
pub loadavg_fifteen: f32,
pub disks: Vec<DiskInfo>,
}Expand description
Detailed system information for a virtual machine.
Contains comprehensive details about the operating system, hardware, and resource utilization of a deployed container VM.
Fields§
§os_name: StringOperating system name (e.g., “Linux”)
os_version: StringOperating system version
kernel_version: StringLinux kernel version
cpu_model: StringCPU model name
num_cpus: u32Number of CPU cores
total_memory: u64Total physical memory in bytes
available_memory: u64Available memory in bytes
used_memory: u64Used memory in bytes
free_memory: u64Free memory in bytes
total_swap: u64Total swap space in bytes
used_swap: u64Used swap space in bytes
free_swap: u64Free swap space in bytes
uptime: u64System uptime in seconds
loadavg_one: f321-minute load average
loadavg_five: f325-minute load average
loadavg_fifteen: f3215-minute load average
disks: Vec<DiskInfo>Information about mounted disks
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 moreSource§impl Debug for SystemInfo
impl Debug for SystemInfo
Source§impl<'de> Deserialize<'de> for SystemInfo
impl<'de> Deserialize<'de> for SystemInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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