pub trait MigrationProgress: Send + Sync {
// Provided methods
fn on_plan_start(&self, _plan: &MigrationPlan) { ... }
fn on_step_start(&self, _step_idx: usize, _step: &MigrationStep) { ... }
fn on_step_complete(&self, _step_idx: usize, _step: &MigrationStep) { ... }
fn on_row_processed(&self, _rows: u64) { ... }
fn on_plan_complete(&self, _plan: &MigrationPlan, _rows_migrated: u64) { ... }
fn on_error(&self, _error: &str) { ... }
}Provided Methods§
fn on_plan_start(&self, _plan: &MigrationPlan)
fn on_step_start(&self, _step_idx: usize, _step: &MigrationStep)
fn on_step_complete(&self, _step_idx: usize, _step: &MigrationStep)
fn on_row_processed(&self, _rows: u64)
fn on_plan_complete(&self, _plan: &MigrationPlan, _rows_migrated: u64)
fn on_error(&self, _error: &str)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".