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§
Sourcefn on_cell_started(&self, cell_id: CellId, name: &str)
fn on_cell_started(&self, cell_id: CellId, name: &str)
Called when a cell starts executing.
Sourcefn on_cell_completed(&self, cell_id: CellId, name: &str)
fn on_cell_completed(&self, cell_id: CellId, name: &str)
Called when a cell completes successfully.
Sourcefn on_cell_error(&self, cell_id: CellId, name: &str, error: &Error)
fn on_cell_error(&self, cell_id: CellId, name: &str, error: &Error)
Called when a cell execution fails.
Provided Methods§
Sourcefn on_level_started(&self, _level: usize, _cell_count: usize)
fn on_level_started(&self, _level: usize, _cell_count: usize)
Called when a parallel level starts.
Sourcefn on_level_completed(&self, _level: usize)
fn on_level_completed(&self, _level: usize)
Called when a parallel level completes.