Enum std::io::process::ProcessExitExperimental [-]  [+] [src]

pub enum ProcessExit {
    ExitStatus(int),
    ExitSignal(int),
}

Describes the result of a process after it has terminated. Note that Windows have no signals, so the result is usually ExitStatus.

Variants

ExitStatus

Normal termination with an exit status.

ExitSignal

Termination by signal, with the signal number.

Methods

impl ProcessExit

fn success(&self) -> bool

Was termination successful? Signal termination not considered a success, and success is defined as a zero exit status.

fn matches_exit_status(&self, wanted: int) -> bool

Checks whether this ProcessExit matches the given exit status. Termination by signal will never match an exit code.

Trait Implementations

impl Show for ProcessExit

fn fmt(&self, f: &mut Formatter) -> Result

Format a ProcessExit enum, to nicely present the information.

Derived Implementations

impl Copy for ProcessExit

impl Clone for ProcessExit

fn clone(&self) -> ProcessExit

fn clone_from(&mut self, source: &Self)

impl Eq for ProcessExit

impl PartialEq for ProcessExit

fn eq(&self, __arg_0: &ProcessExit) -> bool

fn ne(&self, __arg_0: &ProcessExit) -> bool