Expand description
Sync cycle orchestration.
Contains the logic for running a single sync cycle (push local changes, pull remote changes, manage snapshots) and for initializing sync infrastructure.
Structs§
- Sync
Components - Components needed to run sync cycles.
- Sync
Cycle Result - Result of a single sync cycle.
Enums§
- Sync
Cycle Outcome - Outcome of a sync cycle attempt.
Functions§
- clear_
staged_ changeset - Clear the staged changeset after a successful push.
- init_
sync - Initialize sync infrastructure from config and credentials.
- push_
changeset - Push a changeset to the sync storage and update the device head.
- read_
staged_ changeset - Read a previously staged changeset (if any) for retry.
- run_
single_ ⚠sync_ cycle - Run a single sync cycle: grab changeset, push, pull, restart session.
- stage_
changeset - Stage outgoing changeset bytes to disk before pushing.
- staging_
path - Path for staging outgoing changeset bytes that survived a push failure.