Skip to main content

ContinuousStrategyResult

Type Alias ContinuousStrategyResult 

Source
pub type ContinuousStrategyResult<E, M, Err> = Result<ActiveExecutorContext<E, M>, (ActiveExecutorContext<E, M>, Err)>;
Expand description

The result type for simulation continuation strategies.

On success (Ok), it returns an ActiveExecutorContext to proceed to the next simulation step. On failure (Err), it returns the current context along with a strategy-specific error, allowing the simulation to terminate gracefully or be debugged.

Aliased Type§

pub enum ContinuousStrategyResult<E, M, Err> {
    Ok(ActiveExecutorContext<E, M>),
    Err((ActiveExecutorContext<E, M>, Err)),
}

Variants§

§1.0.0

Ok(ActiveExecutorContext<E, M>)

Contains the success value

§1.0.0

Err((ActiveExecutorContext<E, M>, Err))

Contains the error value