pub trait DataStoreMigration {
// Required method
fn migrate_v1_to_v2(
&mut self,
backup_destination: &Path,
as_of: &str,
) -> Result<MigrationReport, MigrationError>;
}Expand description
Host-explicit format-migration port. Generic runtime and CLI paths never call it.
Required Methods§
Sourcefn migrate_v1_to_v2(
&mut self,
backup_destination: &Path,
as_of: &str,
) -> Result<MigrationReport, MigrationError>
fn migrate_v1_to_v2( &mut self, backup_destination: &Path, as_of: &str, ) -> Result<MigrationReport, MigrationError>
Migrates a verified v1 root to v2 only after a host-directed backup and complete candidate verification have succeeded.
§Errors
Returns a stable, secret-free MigrationError when the source,
backup, candidate, ownership lock, or atomic commit cannot be verified.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".