Skip to main content

Module state_manager

Module state_manager 

Source
Expand description

Stores persistent status snapshots to restore basic UI state across application launches.

Tracks the current sync progress, folder-level status, error history, and recent queue events. The state file is written atomically so a crash mid-write never corrupts the snapshot.

Structs§

AppState
Contains shared progress counters exposed to the settings window.
FolderSyncStatus
Represents the status of an individual watch folder.
QueueEvent
Represents a rolling queue/event status used by the settings window inspector.
StateManager
Helper that reads and writes redacted app states to disk.
TransferSnapshot
Snapshot describing currently executing and active file transfers.

Enums§

TransferDirection
Target movement direction of active transfers.

Functions§

unix_timestamp_now 🔒
Return current epoch timestamp.