pub struct UnixReaper(/* private fields */);Expand description
The child’s pgid, which detach arranged to equal its pid.
Trait Implementations§
Source§impl TreeReaper for UnixReaper
impl TreeReaper for UnixReaper
Source§fn kill_tree(&self) -> Result<()>
fn kill_tree(&self) -> Result<()>
INVARIANT: only ever called while the Child is still owned and
un-reaped, so the pid is either live or a zombie — reserved either way,
and never reusable by another process. Killing after a wait would be a
pid-reuse bug: the number could by then name someone else’s process, and
the negation someone else’s group.
Source§const ADOPTION_IS_ATOMIC: bool = true
const ADOPTION_IS_ATOMIC: bool = true
Whether a descendant can escape between spawn and adoption. Read more
Auto Trait Implementations§
impl !Freeze for UnixReaper
impl RefUnwindSafe for UnixReaper
impl Send for UnixReaper
impl Sync for UnixReaper
impl Unpin for UnixReaper
impl UnsafeUnpin for UnixReaper
impl UnwindSafe for UnixReaper
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