pub struct CpuTimes {
pub self_user: f64,
pub self_system: f64,
pub children_user: f64,
pub children_system: f64,
}Expand description
Set of consumed CPU time statistics
This structure contains four CPU time values, all in seconds.
This structure is returned by Times::times.
Fields§
§self_user: f64User CPU time consumed by the current process
self_system: f64System CPU time consumed by the current process
children_user: f64User CPU time consumed by the children of the current process
children_system: f64System CPU time consumed by the children of the current process
Trait Implementations§
impl Copy for CpuTimes
impl StructuralPartialEq for CpuTimes
Auto Trait Implementations§
impl Freeze for CpuTimes
impl RefUnwindSafe for CpuTimes
impl Send for CpuTimes
impl Sync for CpuTimes
impl Unpin for CpuTimes
impl UnwindSafe for CpuTimes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more