Module btlib::atomic_file
source · Expand description
This module exports the AtomicFile struct, which is used to synchronize access to a file.
Modules
- Constants for setting file permissions.
Structs
- This struct provides access to a value of type
T
which can be persisted to a file in the local filesystem. Access toT
is synchronized within the current process, and access to the file is synchronized between processes. - This struct provides synchronized access to a file such that two different processes cannot concurrently write to the same path.
Traits
- Trait for types which can produce a default value, but which may fail when doing so.