Struct wait_timeout::ExitStatus [] [src]

pub struct ExitStatus(_);

Exit status from a child process.

This type mirrors that in std::process but currently must be distinct as the one in std::process cannot be created.

Methods

impl ExitStatus
[src]

fn success(&self) -> bool

Returns whether this exit status represents a successful execution.

This typically means that the child process successfully exited with a status code of 0.

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

Returns the code associated with the child's exit event.

On Unix this can return None if the child instead exited because of a signal. On Windows, however, this will always return Some.

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

Returns the Unix signal which terminated this process.

Note that on Windows this will always return None and on Unix this will return None if the process successfully exited otherwise.

Trait Implementations

impl Debug for ExitStatus
[src]

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

Formats the value using the given formatter.

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

impl Eq for ExitStatus
[src]

impl Display for ExitStatus
[src]

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

Formats the value using the given formatter.