Expand description
AtomicFile provides buffered concurrent access to files with async atomic commit.
BasicAtomicFile is a non-async alternative.
Structs§
- AnyFile
Storage - Alternative to SimpleFileStorage that uses multiple SimpleFileStorages to allow parallel reads by different threads.
- Atomic
File - Based on BasicAtomicFile which makes sure that updates are all-or-nothing. Performs commit asyncronously.
- Basic
Atomic File - Basis for crate::AtomicFile ( non-async alternative ). Provides two-phase commit and buffering of writes.
- Dummy
File - Dummy Stg that can be used for Atomic upd file if “reliable” atomic commits are not required.
- Fast
File Storage - Can be used for atomic upd file ( does not implement Sync ).
- Limits
- Memory configuration limits.
- MemFile
- Simple implementation of Storage using
Arc<Mutex<Vec<u8>>. - Simple
File Storage - Simple implementation of Storage using
std::fs::File. - Unix
File Storage - Optimized implementation of Storage ( unix only ).
Traits§
- Basic
Storage - Storage interface - BasicStorage is some kind of “file” storage.
- Storage
- BasicStorage that can be cloned and shared between threads.
Type Aliases§
- Data
Arc<Vec<u8>>- Multi
File Storage - Optimised Storage