Struct rusty_forkfork::ExitStatusWrapper [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for ExitStatusWrapper
impl Send for ExitStatusWrapper
impl Sync for ExitStatusWrapper
impl Unpin for ExitStatusWrapper
impl UnwindSafe for ExitStatusWrapper
Blanket Implementations
Mutably borrows from an owned value. Read more