pub struct OwnedProcessRegistry { /* private fields */ }Expand description
ProcessIsolated children owned until OS exit is observed.
Implementations§
Source§impl OwnedProcessRegistry
impl OwnedProcessRegistry
Sourcepub fn park(&self, kill: ToolKillHandle, permit: Option<ToolPermit>)
pub fn park(&self, kill: ToolKillHandle, permit: Option<ToolPermit>)
Park a live ProcessIsolated kill handle (and optional tool permit).
Caller MUST have already requested kill when transferring from a dropping
dispatch guard. Entries remain until Self::shutdown_progress or an
explicit reap observes exit.
Sourcepub fn shutdown_progress(&self) -> usize
pub fn shutdown_progress(&self) -> usize
Kill all live children, then drop entries whose exit has been observed.
Returns the number of children still live after this poll (blocks Stopped).
Sourcepub fn live_count(&self) -> usize
pub fn live_count(&self) -> usize
Number of ProcessIsolated children not yet observed exited.
Trait Implementations§
Source§impl Default for OwnedProcessRegistry
impl Default for OwnedProcessRegistry
Source§fn default() -> OwnedProcessRegistry
fn default() -> OwnedProcessRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for OwnedProcessRegistry
impl RefUnwindSafe for OwnedProcessRegistry
impl Send for OwnedProcessRegistry
impl Sync for OwnedProcessRegistry
impl Unpin for OwnedProcessRegistry
impl UnsafeUnpin for OwnedProcessRegistry
impl UnwindSafe for OwnedProcessRegistry
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