Expand description
File locking utilities.
Re-exportsยง
use crate::util::pretty_err;๐use std::fs::File;๐use std::fs::OpenOptions;๐use std::path::Path;๐
Structsยง
- RwLock
- Advisory reader-writer lock for files.
- RwLock
Read Guard - RAII structure used to release the shared read access of a lock when dropped.
- RwLock
Write Guard - RAII structure used to release the exclusive write access of a lock when dropped.
Constantsยง
- LOCK_
TOKEN ๐
Functionsยง
- lock_
exists ๐ - new_
lock - Creates a new lock file at the given path.