Skip to main content

adopt_contained

Function adopt_contained 

Source
pub fn adopt_contained<C: ContainmentChild>(
    child: C,
) -> Result<ContainmentGuard<C>, ContainmentAdoptionError<C>>
Expand description

Adopt an already-running child into an owned containment guard.

Post-spawn adoption is reported as TreeKillReliability::Unproven because descendants may escape before acquisition completes.