#[non_exhaustive]pub struct Times {
pub user: Duration,
pub nice: Duration,
pub system: Duration,
pub idle: Duration,
pub iowait: Duration,
pub irq: Duration,
pub softirq: Duration,
pub steal: Duration,
}Expand description
The OS’s cumulative CPU time counters, since boot (Tier 3). States an OS does not keep are zero.
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.user: DurationRunning user code.
nice: DurationRunning user code at a lowered priority (Unix).
system: DurationRunning kernel code (Windows: kernel time minus idle).
idle: DurationDoing nothing.
iowait: DurationIdle while I/O was outstanding (Linux).
irq: DurationServing hardware interrupts (Linux).
softirq: DurationServing software interrupts (Linux).
steal: DurationTaken by the hypervisor for other guests (Linux virtual machines).
Trait Implementations§
impl Copy for Times
impl Eq for Times
impl StructuralPartialEq for Times
Auto Trait Implementations§
impl Forget for Times
impl Freeze for Times
impl RefUnwindSafe for Times
impl Send for Times
impl Sync for Times
impl Unpin for Times
impl UnsafeUnpin for Times
impl UnwindSafe for Times
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