matrix_sdk_crypto_ffi

Function migrate

Source
pub fn migrate(
    data: MigrationData,
    path: String,
    passphrase: Option<String>,
    progress_listener: Box<dyn ProgressListener>,
) -> Result<(), MigrationError>
Expand description

Migrate a libolm based setup to a vodozemac based setup stored in a SQLite store.

ยงArguments

  • data - The data that should be migrated over to the SQLite store.

  • path - The path where the SQLite store should be created.

  • passphrase - The passphrase that should be used to encrypt the data at rest in the SQLite store. Warning, if no passphrase is given, the store and all its data will remain unencrypted.

  • progress_listener - A callback that can be used to introspect the progress of the migration.