pub enum WaitResult {
Exited(i32),
Signaled(i32),
Stopped(Signal),
}Expand description
Result of waiting for a foreground process.
Variants§
Exited(i32)
Process exited with a status code.
Signaled(i32)
Process was killed by a signal.
Stopped(Signal)
Process was stopped (e.g., SIGTSTP from Ctrl-Z).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WaitResult
impl RefUnwindSafe for WaitResult
impl Send for WaitResult
impl Sync for WaitResult
impl Unpin for WaitResult
impl UnsafeUnpin for WaitResult
impl UnwindSafe for WaitResult
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