Struct rustix::process::wait::WaitidStatus
source · #[repr(transparent)]pub struct WaitidStatus(pub(crate) siginfo_t);
Expand description
The status of a process after calling waitid
.
Tuple Fields§
§0: siginfo_t
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<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 trapping_signal(&self) -> Option<u32>
pub fn trapping_signal(&self) -> Option<u32>
Returns the number of the signal that trapped the process, if the process was trapped 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.
sourcepub const fn as_raw(&self) -> &siginfo_t
pub const fn as_raw(&self) -> &siginfo_t
Returns a reference to the raw platform-specific siginfo_t
struct.
fn si_code(&self) -> u32
fn si_status(&self) -> c_int
Trait Implementations§
source§impl Clone for WaitidStatus
impl Clone for WaitidStatus
source§fn clone(&self) -> WaitidStatus
fn clone(&self) -> WaitidStatus
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 moreimpl Copy for WaitidStatus
Auto Trait Implementations§
impl Freeze for WaitidStatus
impl RefUnwindSafe for WaitidStatus
impl !Send for WaitidStatus
impl !Sync 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)