Enum conch_runtime::ExitStatus
[−]
[src]
pub enum ExitStatus { Code(i32), Signal(i32), }
Describes the result of a process after it has terminated.
Variants
Code(i32)
Normal termination with an exit code.
Signal(i32)
Termination by signal, with the signal number.
Never generated on Windows.
Methods
impl ExitStatus
[src]
fn success(&self) -> bool
[src]
Was termination successful? Signal termination not considered a success, and success is defined as a zero exit status.
Trait Implementations
impl PartialEq for ExitStatus
[src]
fn eq(&self, __arg_0: &ExitStatus) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ExitStatus) -> bool
[src]
This method tests for !=
.
impl Eq for ExitStatus
[src]
impl Clone for ExitStatus
[src]
fn clone(&self) -> ExitStatus
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ExitStatus
[src]
impl Debug for ExitStatus
[src]
impl Display for ExitStatus
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<ExitStatus> for ExitStatus
[src]
fn from(exit: ExitStatus) -> ExitStatus
[src]
Performs the conversion.