Skip to main content

lock

Function lock 

Source
pub(crate) fn lock(path: &Path) -> Result<File, SyncError>
Expand description

An exclusive lock on a file, released when the returned file is dropped.