Skip to main content

preflight

Function preflight 

Source
pub fn preflight(
    plan: &AdmittedCapturePlan,
    estimate: impl FnMut(&[u64], &CaptureSelection, &ResolvedCaptureSlice) -> Result<CaptureUsage, CaptureError>,
) -> Result<(), CaptureError>
Expand description

Checks conservative known per-step and run-total costs before execution. Backends supply only their side-effect-free storage/transfer estimator. Unknown dimensions remain subject to exact observation-time reservation. Step estimates conservatively allow every phase-enabled selection to coincide.