pub(crate) enum Reaper {
Wait(Reaper),
Signal(Reaper),
}Expand description
The underlying system reaper.
Variants§
Wait(Reaper)
The reaper based on the wait backend.
Signal(Reaper)
The reaper based on the signal backend.
Implementations§
Source§impl Reaper
impl Reaper
Sourcepub(crate) async fn lock(&'static self) -> Lock
pub(crate) async fn lock(&'static self) -> Lock
Lock the driver thread.
This makes it so only one thread can reap at once.
Sourcepub(crate) fn register(&'static self, child: Child) -> Result<ChildGuard>
pub(crate) fn register(&'static self, child: Child) -> Result<ChildGuard>
Register a child into this reaper.
Sourcepub(crate) async fn status(
&'static self,
child: &Mutex<ChildGuard>,
) -> Result<ExitStatus>
pub(crate) async fn status( &'static self, child: &Mutex<ChildGuard>, ) -> Result<ExitStatus>
Wait for the inner child to complete.
Sourcepub(crate) fn has_zombies(&'static self) -> bool
pub(crate) fn has_zombies(&'static self) -> bool
Do we have any registered zombie processes?
Auto Trait Implementations§
impl !Freeze for Reaper
impl !RefUnwindSafe for Reaper
impl Send for Reaper
impl Sync for Reaper
impl !Unpin for Reaper
impl UnwindSafe for Reaper
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