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 Copy for ProcessExit
impl Show for ProcessExit
fn fmt(&self, f: &mut Formatter) -> Result
Format a ProcessExit enum, to nicely present the information.