pub trait MigrationStrategy {
// Required methods
fn migrate(&self, plan: &MigrationPlan) -> DeviceResult<MigrationResult>;
fn estimate_duration(&self, plan: &MigrationPlan) -> DeviceResult<Duration>;
fn get_strategy_name(&self) -> String;
}Expand description
Migration strategy trait
Required Methods§
fn migrate(&self, plan: &MigrationPlan) -> DeviceResult<MigrationResult>
fn estimate_duration(&self, plan: &MigrationPlan) -> DeviceResult<Duration>
fn get_strategy_name(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".