Function with_file_lock

Source
pub fn with_file_lock<F, R>(file_path: &Path, operation: F) -> Result<R>
where F: FnOnce() -> Result<R>,
Expand description

Execute an operation with file locking protection