pub fn stop_orphans(
registry: &Loaded<Registry>,
on_close: OnClose,
engine_for: &dyn Fn(EngineKind) -> Option<Engine>,
run: &mut dyn FnMut(&EngineCommand) -> Result<String, EngineError>,
) -> ReapedExpand description
Stops every container of registry that is running, when on_close says to, and answers
what came of it.
engine_for finds the engine of a kind, or None when it is not there; run runs one
command and answers what it printed. The real caller passes crate::engine::detect and
crate::engine::run::capture; a test passes its own. Stopping is stop, never rm: the
next QCode starts the same container again with everything in it.