Struct rustuv::process::Process
pub struct Process { handle: *uv_process_t, home: HomeHandle, to_wake: Option<BlockedTask>, exit_status: Option<ProcessExit>, }
Fields
handle | |
home | |
to_wake | Task to wake up (may be null) for when the process exits |
exit_status | Collected from the exit_cb |
Methods
impl Process
fn spawn(io_loop: &mut UvIoFactory, config: ProcessConfig) -> Result<(~Process, ~[Option<PipeWatcher>]), UvError>
Spawn a new process inside the specified event loop.
Returns either the corresponding process object or an error which occurred.
fn kill(pid: pid_t, signum: int) -> Result<(), UvError>
Trait Implementations
impl HomingIO for Process
fn home<'r>(&'r mut self) -> &'r mut HomeHandle
fn go_to_IO_home(&mut self) -> uint
This function will move tasks to run on their home I/O scheduler. Note that this function does not pin the task to the I/O scheduler, but rather it simply moves it to running on the I/O scheduler.
fn fire_homing_missile(&mut self) -> HomingMissile
Fires a single homing missile, returning another missile targeted back at the original home of this task. In other words, this function will move the local task to its I/O scheduler and then return an RAII wrapper which will return the task home.