Struct native::io::process::Process[src]

pub struct Process {
    // some fields omitted
}

A value representing a child process.

The lifetime of this value is linked to the lifetime of the actual process - the Process destructor calls self.finish() which waits for the process to terminate.

Methods

impl Process

fn spawn(cfg: ProcessConfig) -> IoResult<(Process, Vec<Option<FileDesc>>)>

Creates a new process using native process-spawning abilities provided by the OS. Operations on this process will be blocking instead of using the runtime for sleeping just this current task.

fn kill(pid: pid_t, signum: int) -> IoResult<()>

Trait Implementations

impl RtioProcess for Process

fn id(&self) -> pid_t

fn set_timeout(&mut self, timeout: Option<u64>)

fn wait(&mut self) -> IoResult<ProcessExit>

fn kill(&mut self, signum: int) -> IoResult<()>

impl Drop for Process

fn drop(&mut self)