Enum unshare::ExitStatus [] [src]

pub enum ExitStatus {
    Exited(i8),
    Signaled(SigNum, bool),
}

Variants

Exited(i8)

Process exited normally with some exit code

Signaled(SigNum, bool)

Process was killed by a signal (bool flag is true when core is dumped)

Methods

impl ExitStatus
[src]

fn success(&self) -> bool

fn code(&self) -> Option<i32>

fn signal(&self) -> Option<i32>

Trait Implementations

impl Eq 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 !=.

impl Copy 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 Debug for ExitStatus
[src]

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

Formats the value using the given formatter.

impl Display for ExitStatus
[src]

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

Formats the value using the given formatter.