[][src]Trait portable_pty::Child

pub trait Child: Debug {
    fn try_wait(&mut self) -> IoResult<Option<ExitStatus>>;
fn kill(&mut self) -> IoResult<()>;
fn wait(&mut self) -> IoResult<ExitStatus>; }

Represents a child process spawned into the pty. This handle can be used to wait for or terminate that child process.

Required methods

fn try_wait(&mut self) -> IoResult<Option<ExitStatus>>

Poll the child to see if it has completed. Does not block. Returns None if the has not yet terminated, else returns its exit status.

fn kill(&mut self) -> IoResult<()>

Terminate the child process

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

Blocks execution until the child process has completed, yielding its exit status.

Loading content...

Implementations on Foreign Types

impl Child for Child[src]

Loading content...

Implementors

Loading content...