Enum unshare::ExitStatus[][src]

pub enum ExitStatus {
    Exited(i8),
    Signaled(Signalbool),
}

The exit status of a process

Returned either by reap_zombies() or by child_events() or by Child::wait()

Variants

Process exited normally with some exit code

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

Methods

impl ExitStatus
[src]

Returns true if this exit status means successful exit

Returns exit code if the process has exited normally

Returns signal number if he process was killed by signal

Trait Implementations

impl Debug for ExitStatus
[src]

Formats the value using the given formatter. Read more

impl Clone for ExitStatus
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ExitStatus
[src]

impl PartialEq for ExitStatus
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ExitStatus
[src]

impl Display for ExitStatus
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ExitStatus

impl Sync for ExitStatus