pub struct WaitIdStatus(/* private fields */);
Expand description
The status of a process after calling waitid
.
Implementations§
Source§impl WaitIdStatus
impl WaitIdStatus
Sourcepub fn killed(&self) -> bool
pub fn killed(&self) -> bool
Returns whether the process was terminated by a signal and did not create a core file.
Sourcepub fn dumped(&self) -> bool
pub fn dumped(&self) -> bool
Returns whether the process was terminated by a signal and did create a core file.
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<i32>
pub fn stopping_signal(&self) -> Option<i32>
Returns the number of the signal that stopped the process, if the process was stopped by a signal.
Sourcepub fn trapping_signal(&self) -> Option<i32>
pub fn trapping_signal(&self) -> Option<i32>
Returns the number of the signal that trapped the process, if the process was trapped by a signal.
Sourcepub fn exit_status(&self) -> Option<i32>
pub fn exit_status(&self) -> Option<i32>
Returns the exit status number returned by the process, if it exited normally.
Sourcepub fn terminating_signal(&self) -> Option<i32>
pub fn terminating_signal(&self) -> Option<i32>
Returns the number of the signal that terminated the process, if the process was terminated by a signal.
Trait Implementations§
Source§impl Clone for WaitIdStatus
impl Clone for WaitIdStatus
Source§fn clone(&self) -> WaitIdStatus
fn clone(&self) -> WaitIdStatus
Returns a duplicate 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 WaitIdStatus
Available on neither target_os=horizon
nor OpenBSD nor Redox nor WASI.
impl Debug for WaitIdStatus
Available on neither
target_os=horizon
nor OpenBSD nor Redox nor WASI.impl Copy for WaitIdStatus
impl Send for WaitIdStatus
Available on
linux_raw
only.impl Sync for WaitIdStatus
Available on
linux_raw
only.Auto Trait Implementations§
impl Freeze for WaitIdStatus
impl RefUnwindSafe for WaitIdStatus
impl Unpin for WaitIdStatus
impl UnwindSafe for WaitIdStatus
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