Trait uucore::process::ChildExt

source ·
pub trait ChildExt {
    // Required methods
    fn send_signal(&mut self, signal: usize) -> Result<()>;
    fn send_signal_group(&mut self, signal: usize) -> Result<()>;
    fn wait_or_timeout(
        &mut self,
        timeout: Duration
    ) -> Result<Option<ExitStatus>>;
}
Expand description

Missing methods for Child objects

Required Methods§

source

fn send_signal(&mut self, signal: usize) -> Result<()>

Send a signal to a Child process.

Caller beware: if the process already exited then you may accidentally send the signal to an unrelated process that recycled the PID.

source

fn send_signal_group(&mut self, signal: usize) -> Result<()>

Send a signal to a process group.

source

fn wait_or_timeout(&mut self, timeout: Duration) -> Result<Option<ExitStatus>>

Wait for a process to finish or return after the specified duration. A timeout of zero disables the timeout.

Implementations on Foreign Types§

source§

impl ChildExt for Child

source§

fn send_signal(&mut self, signal: usize) -> Result<()>

source§

fn send_signal_group(&mut self, signal: usize) -> Result<()>

source§

fn wait_or_timeout(&mut self, timeout: Duration) -> Result<Option<ExitStatus>>

Implementors§