Skip to main content

start_engine

Function start_engine 

Source
pub async fn start_engine(
    cx: &Context,
    engine: Engine,
    elevation: Elevation,
    on_line: &mut (dyn FnMut(&str) + Send),
) -> Result<(), StartFailed>
Expand description

Starts engine (start_steps, each line its steps print handed to on_line), points the Docker CLI at it once its context appears, and waits until its daemon answers this account. An engine that runs already (its own context answers) is only pointed at: no step runs.

§Errors

StartFailed: why it wasn’t started, or gave no answer.