Skip to main content

ExecutionHook

Trait ExecutionHook 

Source
pub trait ExecutionHook: Send {
    // Required methods
    fn on_phase_change(&mut self, phase: ExecutionPhase, state: &ExecutionState);
    fn on_node_start(&mut self, node_idx: usize, state: &ExecutionState);
    fn on_node_complete(
        &mut self,
        node_idx: usize,
        duration: Duration,
        state: &ExecutionState,
    );
    fn on_error(&mut self, error: &str, state: &ExecutionState);
    fn on_complete(&mut self, state: &ExecutionState);
}
Expand description

Hook for monitoring execution events

Required Methods§

Source

fn on_phase_change(&mut self, phase: ExecutionPhase, state: &ExecutionState)

Called when execution phase changes

Source

fn on_node_start(&mut self, node_idx: usize, state: &ExecutionState)

Called when a node starts executing

Source

fn on_node_complete( &mut self, node_idx: usize, duration: Duration, state: &ExecutionState, )

Called when a node completes

Source

fn on_error(&mut self, error: &str, state: &ExecutionState)

Called when an error occurs

Source

fn on_complete(&mut self, state: &ExecutionState)

Called when execution completes

Implementors§