pub struct CpuUsageStats {
pub total_usage: Option<u64>,
pub percpu_usage: Option<Vec<u64>>,
pub usage_in_kernelmode: Option<u64>,
pub usage_in_usermode: Option<u64>,
}
Fields§
§total_usage: Option<u64>
§percpu_usage: Option<Vec<u64>>
§usage_in_kernelmode: Option<u64>
§usage_in_usermode: Option<u64>
Trait Implementations§
Source§impl Clone for CpuUsageStats
impl Clone for CpuUsageStats
Source§fn clone(&self) -> CpuUsageStats
fn clone(&self) -> CpuUsageStats
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 CpuUsageStats
impl Debug for CpuUsageStats
Source§impl<'de> Deserialize<'de> for CpuUsageStats
impl<'de> Deserialize<'de> for CpuUsageStats
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 CpuUsageStats
impl RefUnwindSafe for CpuUsageStats
impl Send for CpuUsageStats
impl Sync for CpuUsageStats
impl Unpin for CpuUsageStats
impl UnwindSafe for CpuUsageStats
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