pub trait CpuUsageProvider:
Send
+ Sync
+ 'static {
// Required method
fn cpu_usage_millis(&self) -> u32;
}Expand description
Provides CPU usage in millicpu-style units where 1000 means 100%.
Required Methods§
Sourcefn cpu_usage_millis(&self) -> u32
fn cpu_usage_millis(&self) -> u32
Returns current process or system CPU usage.