ExecutionCallback

Trait ExecutionCallback 

Source
pub trait ExecutionCallback: Send + Sync {
    // Required methods
    fn on_cell_started(&self, cell_id: CellId, name: &str);
    fn on_cell_completed(&self, cell_id: CellId, name: &str);
    fn on_cell_error(&self, cell_id: CellId, name: &str, error: &Error);

    // Provided methods
    fn on_level_started(&self, _level: usize, _cell_count: usize) { ... }
    fn on_level_completed(&self, _level: usize) { ... }
}
Expand description

Callback trait for execution progress reporting.

Required Methods§

Source

fn on_cell_started(&self, cell_id: CellId, name: &str)

Called when a cell starts executing.

Source

fn on_cell_completed(&self, cell_id: CellId, name: &str)

Called when a cell completes successfully.

Source

fn on_cell_error(&self, cell_id: CellId, name: &str, error: &Error)

Called when a cell execution fails.

Provided Methods§

Source

fn on_level_started(&self, _level: usize, _cell_count: usize)

Called when a parallel level starts.

Source

fn on_level_completed(&self, _level: usize)

Called when a parallel level completes.

Implementors§