Skip to main content

step

Function step 

Source
pub fn step<T: StepOutcome>(
    id: &'static str,
    label: &str,
    f: impl FnOnce() -> T,
) -> T
Expand description

A data-preparation step the splash shows: copying the previous version’s data, a snapshot, the backup. Writes AGENTMUXSRV-STEP-BEGIN/-END on stderr around f (the launcher shows a sub-row of “Backend startup”; the same lines report agentmux-srv migrate --prepare’s steps) and records the time like time, so the splash and the boot summary come from one call.