Struct rustix::process::WaitStatus
source · [−]pub struct WaitStatus(_);
Expand description
the status of the child processes the caller waited on
Implementations
sourceimpl 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
sourceimpl Clone for WaitStatus
impl Clone for WaitStatus
sourcefn clone(&self) -> WaitStatus
fn clone(&self) -> WaitStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WaitStatus
impl Debug for WaitStatus
impl Copy for WaitStatus
Auto Trait Implementations
impl RefUnwindSafe for WaitStatus
impl Send for WaitStatus
impl Sync for WaitStatus
impl Unpin for WaitStatus
impl UnwindSafe for WaitStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more