Enum unshare::ExitStatus [−][src]
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]
impl ExitStatus
pub fn success(&self) -> bool
[src]
pub fn success(&self) -> bool
Returns true
if this exit status means successful exit
pub fn code(&self) -> Option<i32>
[src]
pub fn code(&self) -> Option<i32>
Returns exit code if the process has exited normally
pub fn signal(&self) -> Option<i32>
[src]
pub fn signal(&self) -> Option<i32>
Returns signal number if he process was killed by signal
Trait Implementations
impl Debug for ExitStatus
[src]
impl Debug for ExitStatus
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ExitStatus
[src]
impl Clone for ExitStatus
fn clone(&self) -> ExitStatus
[src]
fn clone(&self) -> ExitStatus
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for ExitStatus
[src]
impl Copy for ExitStatus
impl PartialEq for ExitStatus
[src]
impl PartialEq for ExitStatus
fn eq(&self, other: &ExitStatus) -> bool
[src]
fn eq(&self, other: &ExitStatus) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ExitStatus) -> bool
[src]
fn ne(&self, other: &ExitStatus) -> bool
This method tests for !=
.
impl Eq for ExitStatus
[src]
impl Eq for ExitStatus
impl Display for ExitStatus
[src]
impl Display for ExitStatus
Auto Trait Implementations
impl Send for ExitStatus
impl Send for ExitStatus
impl Sync for ExitStatus
impl Sync for ExitStatus