Skip to main content

Module cloud

Module cloud 

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

BackupEntry
Entry in the backup list for a slot.
BackupManager
Rotating local backups — up to 5 per slot.
CloudMetadata
Aggregate metadata about the cloud storage account.
CloudSaveClient
Manages upload/download queue, conflict detection, retry with exponential backoff (3 attempts), and a concurrent upload limit of 2.
CloudSaveEntry
A single save slot entry stored in the cloud.
CloudSaveStats
Cumulative statistics for a session.
OfflineQueue
Stores pending cloud operations when offline. Max 100 entries; oldest is evicted when full.
SaveEncryption
XOR-cipher with key derived from the user ID.

Enums§

CloudProvider
Which cloud backend to use.
CloudSyncState
Current synchronisation state of the cloud client.
ConflictResolution
How to resolve a conflict between a local and remote save.
PendingOp
Pending cloud operation recorded while offline.