Skip to main content

classify_conditional_step

Function classify_conditional_step 

Source
pub fn classify_conditional_step(
    when: &WhenGuard,
    consumes: &[String],
    preceding_step: Option<&StepIdentity>,
    state: &GuardState,
) -> Result<ConditionalDecision, DispatchError>
Expand description

The single entry point a staged executor would use to decide what a conditional step does next: fold into a bounded repair turn (R1), run (R2 guard true), or skip (R2 guard false / R1 target didn’t fail).