pub fn run_event_loop_with_handler<'ctx, H>(
ctx: &mut PhaseContext<'_>,
initial_state: Option<PipelineState>,
config: EventLoopConfig,
handler: &mut H,
) -> Result<EventLoopResult>where
H: EffectHandler<'ctx> + StatefulHandler,Expand description
Run the event loop with a custom effect handler.
This variant allows injecting a custom effect handler for testing.
The handler must implement EffectHandler and StatefulHandler traits.
§Arguments
ctx- Phase context for effect handlersinitial_state- Optional initial state (if None, creates a new state)config- Event loop configurationhandler- Custom effect handler (e.g., MockEffectHandler for testing)
§Returns
Returns the event loop result containing the completion status and final state.