pub enum WaitEvent {
Exited {
code: i32,
},
Killed {
signal: Signal,
core_dumped: bool,
},
Stopped {
signal: Signal,
},
Continued,
Trapped {
signal: Signal,
},
}Expand description
Type d’événement remonté par waitid.
Le mapping kernel si_code → variante :
CLD_EXITED(1) →Self::ExitedCLD_KILLED(2) →Self::Killed { core_dumped: false }CLD_DUMPED(3) →Self::Killed { core_dumped: true }CLD_TRAPPED(4) →Self::TrappedCLD_STOPPED(5) →Self::StoppedCLD_CONTINUED(6) →Self::Continued
Variants§
Exited
L’enfant a terminé normalement (exit_group / retour de main).
Killed
L’enfant a été terminé par un signal.
Fields
Stopped
L’enfant a été arrêté (SIGSTOP/SIGTSTP).
Continued
L’enfant a été repris (SIGCONT).
Trapped
ptrace trap.
Trait Implementations§
impl Copy for WaitEvent
impl Eq for WaitEvent
impl StructuralPartialEq for WaitEvent
Auto Trait Implementations§
impl Freeze for WaitEvent
impl RefUnwindSafe for WaitEvent
impl Send for WaitEvent
impl Sync for WaitEvent
impl Unpin for WaitEvent
impl UnsafeUnpin for WaitEvent
impl UnwindSafe for WaitEvent
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