GetRUsage

Trait GetRUsage 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl GetRUsage for Child

Implementors§