Module cycle

Module cycle 

Source
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§

SyncComponents
Components needed to run sync cycles.
SyncCycleResult
Result of a single sync cycle.

Enums§

SyncCycleOutcome
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.