pub trait FileLock { fn lock(file: &File) -> Result<()>; fn unlock(file: &File) -> Result<()>; }
Describes a mode by which a file can be locked or unlocked.
Locks the file.
Unlocks the file.