pub struct SafeChild { /* private fields */ }Expand description
Wrapper around Child that guarantees a best-effort kill on drop.
On Unix, this sends SIGKILL via the kill syscall. On Windows, the
Child::kill method maps to TerminateProcess. In both cases the OS
reaps the process to prevent zombies.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SafeChild
impl RefUnwindSafe for SafeChild
impl Send for SafeChild
impl Sync for SafeChild
impl Unpin for SafeChild
impl UnsafeUnpin for SafeChild
impl UnwindSafe for SafeChild
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