pub enum ExecEvent {
Start(StartFfiInfo),
End,
Status(Pid, Signal),
Syscall(Pid),
Died(Option<i32>),
}
Expand description
A unified event representing something happening on the child process. Wraps
nix
’s WaitStatus
and our custom signals so it can all be done with one
match
statement.
Variants§
Start(StartFfiInfo)
Child process requests that we begin monitoring it.
End
Child requests that we stop monitoring and pass over the events we detected.
Status(Pid, Signal)
The child process with the specified pid was stopped by the given signal.
Syscall(Pid)
The child process with the specified pid entered or existed a syscall.
Died(Option<i32>)
A child process exited or was killed; if we have a return code, it is specified.
Auto Trait Implementations§
impl Freeze for ExecEvent
impl RefUnwindSafe for ExecEvent
impl Send for ExecEvent
impl Sync for ExecEvent
impl Unpin for ExecEvent
impl UnwindSafe for ExecEvent
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
Start
: 32 bytesEnd
: 0 bytesStatus
: 16 bytesSyscall
: 12 bytesDied
: 16 bytes