Wait4

Trait Wait4 

Source
pub trait Wait4 {
    // Required method
    fn wait4(&mut self) -> Result<ResUse>;
}
Expand description

Add wait for a process and return the resources it used.

Required Methods§

Source

fn wait4(&mut self) -> Result<ResUse>

As for wait, it waits for the child to exit completely, returning the status that it exited with and an estimate of the time and memory resources it used.

The stdin handle to the child process, if any, will be closed before waiting, refer to wait for the rationale for it.

Implementations on Foreign Types§

Source§

impl Wait4 for Child

Source§

fn wait4(&mut self) -> Result<ResUse>

Implementors§