pub struct ProcessGuard { /* private fields */ }Expand description
RAII guard that kills a child process on drop.
Wraps std::process::Child and ensures the process is killed and waited
on when the guard is dropped. Call kill explicitly
to terminate early.
Implementations§
Trait Implementations§
Source§impl Drop for ProcessGuard
impl Drop for ProcessGuard
Auto Trait Implementations§
impl Freeze for ProcessGuard
impl RefUnwindSafe for ProcessGuard
impl Send for ProcessGuard
impl Sync for ProcessGuard
impl Unpin for ProcessGuard
impl UnsafeUnpin for ProcessGuard
impl UnwindSafe for ProcessGuard
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