pub struct ExitStatusWrapper(_);
Expand description

Wraps std::process::ExitStatus. Historically, this was due to the wait_timeout crate having its own ExitStatus type.

Method documentation is copied from the Rust std docs and the wait_timeout docs.

Implementations

Was termination successful? Signal termination is not considered a success, and success is defined as a zero exit status.

Returns the exit code of the process, if any.

On Unix, this will return None if the process was terminated by a signal; std::os::unix provides an extension trait for extracting the signal and other details from the ExitStatus.

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.

For simplicity and to match wait_timeout, this method is always present even on systems that do not support it.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.