pub trait FileLock {
    fn lock(file: &File) -> Result<()>;
    fn unlock(file: &File) -> Result<()>;
}
Expand description

Describes a mode by which a file can be locked or unlocked.

Required Methods

Locks the file.

Unlocks the file.

Implementors