Skip to main content

MigrationProgress

Trait MigrationProgress 

Source
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§

Source

fn on_plan_start(&self, _plan: &MigrationPlan)

Source

fn on_step_start(&self, _step_idx: usize, _step: &MigrationStep)

Source

fn on_step_complete(&self, _step_idx: usize, _step: &MigrationStep)

Source

fn on_row_processed(&self, _rows: u64)

Source

fn on_plan_complete(&self, _plan: &MigrationPlan, _rows_migrated: u64)

Source

fn on_error(&self, _error: &str)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§