Enum unshare::ExitStatus
[−]
[src]
pub enum ExitStatus { Exited(i8), Signaled(Signal, bool), }
The exit status of a process
Returned either by reap_zombies()
or by child_events()
or by Child::wait()
Variants
Exited(i8)
Process exited normally with some exit code
Signaled(Signal, bool)
Process was killed by a signal (bool flag is true when core is dumped)
Methods
impl ExitStatus
[src]
fn success(&self) -> bool
Returns true
if this exit status means successful exit
fn code(&self) -> Option<i32>
Returns exit code if the process has exited normally
fn signal(&self) -> Option<i32>
Returns signal number if he process was killed by signal
Trait Implementations
impl Debug for ExitStatus
[src]
impl Clone for ExitStatus
[src]
fn clone(&self) -> ExitStatus
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for ExitStatus
[src]
impl PartialEq for ExitStatus
[src]
fn eq(&self, __arg_0: &ExitStatus) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ExitStatus) -> bool
This method tests for !=
.