Skip to main content

spawn_contained

Function spawn_contained 

Source
pub fn spawn_contained(
    command: Command,
) -> Result<ContainmentGuard<Child>, ContainmentSpawnError>
Expand description

Spawn a standard-library child and return its owned containment guard.

Unix uses the same sealed spawn-time session receipt as contain_acquired_session and reports guaranteed acquisition/group signaling eligibility. Windows fails closed until a create-suspended Job assignment path is available; use adopt_contained for explicitly unproven adoption.