pub struct RUsage {
pub user_time: Duration,
pub system_time: Duration,
}Expand description
Describes how much resources current process spent
Fields§
§user_time: DurationCPU time spent in user mode
system_time: DurationCPU time spent in a system/kernel mode
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RUsage
impl RefUnwindSafe for RUsage
impl Send for RUsage
impl Sync for RUsage
impl Unpin for RUsage
impl UnsafeUnpin for RUsage
impl UnwindSafe for RUsage
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