#[non_exhaustive]pub struct CpuTime {
pub user: Duration,
pub system: Duration,
}Expand description
CPU time this process has used.
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.
system: DurationRunning kernel code on this process’s behalf.
Implementations§
Trait Implementations§
impl Copy for CpuTime
impl Eq for CpuTime
impl StructuralPartialEq for CpuTime
Auto Trait Implementations§
impl Freeze for CpuTime
impl RefUnwindSafe for CpuTime
impl Send for CpuTime
impl Sync for CpuTime
impl Unpin for CpuTime
impl UnsafeUnpin for CpuTime
impl UnwindSafe for CpuTime
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