Struct rustix::process::WaitStatus
source · pub struct WaitStatus(_);
Available on crate feature
process
only.Expand description
the status of the child processes the caller waited on
Implementations§
source§impl WaitStatus
impl WaitStatus
sourcepub const fn as_raw(self) -> u32
pub const fn as_raw(self) -> u32
Converts a WaitStatus
into its raw representation as an integer.
sourcepub fn continued(self) -> bool
pub fn continued(self) -> bool
Returns whether the process has continued from a job control stop.
sourcepub fn stopping_signal(self) -> Option<u32>
pub fn stopping_signal(self) -> Option<u32>
Returns the number of the signal that stopped the process, if the process was stopped by a signal.
sourcepub fn exit_status(self) -> Option<u32>
pub fn exit_status(self) -> Option<u32>
Returns the exit status number returned by the process, if it exited normally.
sourcepub fn terminating_signal(self) -> Option<u32>
pub fn terminating_signal(self) -> Option<u32>
Returns the number of the signal that terminated the process, if the process was terminated by a signal.
Trait Implementations§
source§impl Clone for WaitStatus
impl Clone for WaitStatus
source§fn clone(&self) -> WaitStatus
fn clone(&self) -> WaitStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more