pub trait GetRUsage {
// Required method
fn wait_for_rusage(&mut self) -> Result<RUsage, Error>;
}Expand description
A trait for getting resource usage statistics for a process.
Required Methods§
Sourcefn wait_for_rusage(&mut self) -> Result<RUsage, Error>
fn wait_for_rusage(&mut self) -> Result<RUsage, Error>
Waits for the process to exit and returns its resource usage statistics. Works only on linux with wait4 syscall available.