Skip to main content

Crate atom_file

Crate atom_file 

Source
Expand description

AtomicFile provides buffered concurrent access to files with async atomic commit.

BasicAtomicFile is a non-async alternative.

Structs§

AtomicFile
Based on BasicAtomicFile which makes sure that updates are all-or-nothing. Performs commit asyncronously.
BasicAtomicFile
Basis for crate::AtomicFile ( non-async alternative ). Provides two-phase commit and buffering of writes.
DummyFile
Dummy Stg that can be used for Atomic upd file if “reliable” atomic commits are not required.
FastFileStorage
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>>.
MultiFileStorage
Alternative to SimpleFileStorage that uses multiple SimpleFileStorages to allow parallel reads by different threads.
SimpleFileStorage
Simple implementation of Storage using std::fs::File.

Traits§

BasicStorage
Storage interface - BasicStorage is some kind of “file” storage.
Storage
BasicStorage that can be shared between threads.

Type Aliases§

Data
Arc<Vec<u8>>