Module snapshot

Module snapshot 

Source

Structs§

BootstrapResult
Result of bootstrapping from a snapshot.
GcResult
Result of a garbage collection run.
SnapshotMeta
Metadata stored alongside a snapshot in snapshot_meta.json.enc.

Enums§

SnapshotError
Error type for snapshot operations.

Functions§

bootstrap_from_snapshot
Bootstrap a new device from a snapshot.
create_snapshot
Create a snapshot of the database as encrypted bytes.
garbage_collect
Delete changesets that are superseded by a snapshot.
push_snapshot
Upload a snapshot to the sync storage and update the device head.
should_create_snapshot
Check whether it’s time to create a new snapshot.