Struct rustix::process::WaitStatus
source · pub struct WaitStatus(/* private fields */);
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 moresource§impl Debug for WaitStatus
impl Debug for WaitStatus
impl Copy for WaitStatus
Auto Trait Implementations§
impl Freeze for WaitStatus
impl RefUnwindSafe for WaitStatus
impl Send for WaitStatus
impl Sync for WaitStatus
impl Unpin for WaitStatus
impl UnwindSafe for WaitStatus
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)