pub struct WaitIdStatus(/* private fields */);Available on crate feature
process only.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>
Available on neither Emscripten nor Fuchsia nor NetBSD.
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>
Available on neither Emscripten nor Fuchsia nor NetBSD.
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>
Available on neither Emscripten nor Fuchsia nor NetBSD.
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>
Available on neither Emscripten nor Fuchsia nor NetBSD.
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.
Sourcepub fn raw_signo(&self) -> c_int
Available on linux_raw only.
pub fn raw_signo(&self) -> c_int
linux_raw only.Return the raw si_signo value returned from waitid.
Trait Implementations§
Source§impl Clone for WaitIdStatus
impl Clone for WaitIdStatus
impl Copy for WaitIdStatus
Source§impl Debug for WaitIdStatus
impl Debug for WaitIdStatus
impl Send for WaitIdStatus
impl Sync for WaitIdStatus
Auto Trait Implementations§
impl Freeze for WaitIdStatus
impl RefUnwindSafe for WaitIdStatus
impl Unpin for WaitIdStatus
impl UnsafeUnpin 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