Skip to main content

Module snapshot

Module snapshot 

Source

Structs§

DiskSnapshotStore
Disk-backed snapshot store. Writes are atomic via the .tmp + rename dance in crate::atomic::write_atomic_bytes, with the parent directory fsynced on success.
MemorySnapshotStore
No-op store used in StorageMode::Memory. load always returns None and save is a noop.

Traits§

SnapshotStore
Generic opaque-blob snapshot store used by services that persist their whole state as a single serialized document (DynamoDB tables, SQS queues, etc.). Unlike the fine-grained crate::s3::S3Store which tracks individual objects and streams bodies to disk, this trait is designed for services whose state is small enough to fit in memory and can be written as one atomic file.