pub trait ResourceStat {
// Required methods
fn get_total_cpu_millicores(&self) -> i64;
fn get_total_memory_bytes(&self) -> i64;
fn get_cpu_usage_millicores(&self) -> i64;
fn get_memory_usage_bytes(&self) -> i64;
}Expand description
A trait for getting resource statistics.
Required Methods§
Sourcefn get_total_cpu_millicores(&self) -> i64
fn get_total_cpu_millicores(&self) -> i64
Get the total CPU in millicores.
Sourcefn get_total_memory_bytes(&self) -> i64
fn get_total_memory_bytes(&self) -> i64
Get the total memory in bytes.
Sourcefn get_cpu_usage_millicores(&self) -> i64
fn get_cpu_usage_millicores(&self) -> i64
Get the CPU usage in millicores.
Sourcefn get_memory_usage_bytes(&self) -> i64
fn get_memory_usage_bytes(&self) -> i64
Get the memory usage in bytes.