Skip to main content

adopt_or_spawn

Function adopt_or_spawn 

Source
pub fn adopt_or_spawn(suite: &Suite, service: &str) -> AdoptOrSpawn
Expand description

Adopt only a live, reachable record whose PID generation still matches.

A service.json that cannot be read is Spawn here, as an absent one is; the enum cannot say “unknown”. Use try_adopt_or_spawn where that must not start a second host.