Struct shared_child::SharedChild
[−]
[src]
pub struct SharedChild { /* fields omitted */ }
Methods
impl SharedChild
[src]
fn spawn(command: &mut Command) -> Result<SharedChild>
Spawn a new SharedChild
from a std::process::Command
.
fn id(&self) -> u32
fn wait(&self) -> Result<ExitStatus>
Wait for the child to exit, blocking the current thread, and return its exit status.
fn try_wait(&self) -> Result<Option<ExitStatus>>
Return the child's exit status if it has already exited. If the child is
still running, return Ok(None)
.
fn kill(&self) -> Result<()>
Send a kill signal to the child. You should call wait
afterwards to
avoid leaving a zombie on Unix.