#[non_exhaustive]pub struct ProcessUsage {
pub of_one_core: f32,
pub of_machine: Percent,
pub interval: Duration,
}Expand description
The share of CPU this process used over an interval.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.of_one_core: f32Of one core, 0.0 ..= 100.0 × logical CPUs: 250.0 is two and a half cores busy.
of_machine: PercentOf every logical CPU.
interval: DurationThe time the values cover.
Trait Implementations§
Source§impl Clone for ProcessUsage
impl Clone for ProcessUsage
impl Copy for ProcessUsage
Auto Trait Implementations§
impl Forget for ProcessUsage
impl Freeze for ProcessUsage
impl RefUnwindSafe for ProcessUsage
impl Send for ProcessUsage
impl Sync for ProcessUsage
impl Unpin for ProcessUsage
impl UnsafeUnpin for ProcessUsage
impl UnwindSafe for ProcessUsage
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