pub async fn bootstrap_from_snapshot(
storage: &dyn SyncStorage,
encryption: &EncryptionService,
target_path: &Path,
) -> Result<BootstrapResult, SnapshotError>Expand description
Bootstrap a new device from a snapshot.
Downloads snapshot.db.enc, decrypts, and writes the plaintext database
to target_path. The caller should then open this as their local database
and pull any changesets newer than the per-device cursors in the result.
Returns a BootstrapResult with per-device cursors so the caller knows
where to start pulling changesets from each device.