Expand description
Cloud save synchronisation: upload/download queuing, conflict resolution, offline buffering, encryption, and rotating local backups.
No real network I/O is performed — all “remote” state is simulated in memory so the module compiles and tests without external dependencies.
Structs§
- Backup
Entry - Entry in the backup list for a slot.
- Backup
Manager - Rotating local backups — up to 5 per slot.
- Cloud
Metadata - Aggregate metadata about the cloud storage account.
- Cloud
Save Client - Manages upload/download queue, conflict detection, retry with exponential backoff (3 attempts), and a concurrent upload limit of 2.
- Cloud
Save Entry - A single save slot entry stored in the cloud.
- Cloud
Save Stats - Cumulative statistics for a session.
- Offline
Queue - Stores pending cloud operations when offline. Max 100 entries; oldest is evicted when full.
- Save
Encryption - XOR-cipher with key derived from the user ID.
Enums§
- Cloud
Provider - Which cloud backend to use.
- Cloud
Sync State - Current synchronisation state of the cloud client.
- Conflict
Resolution - How to resolve a conflict between a local and remote save.
- Pending
Op - Pending cloud operation recorded while offline.