pub async fn walk<O, R, F, C>(
wanted: &Wanted,
machine: (Machine, Options),
on_failure: OnFailure,
steps: Steps<R, F, C>,
on: impl FnMut(Event<O>),
) -> Walkedwhere
R: AsyncFnMut(&Step, &mut dyn FnMut(String)) -> O,
F: Fn(&O) -> bool,
C: AsyncFnMut() -> (Machine, Options),Expand description
Walks the setup wanted from machine and its options: the next step of the plan not done
yet (a restart or a new login last, never run) run by steps, told to on, the machine
checked again after it, until none is left, or (on_failure) one fails.