Method lrs::file::File::try_lock_shared

Tries to lock this file shared without blocking.

Syntax

impl File {
    fn try_lock_shared(&self) -> Result<(), Errno>
}

Remarks

Note that this locking is voluntary. Other programs can continue to modify the file even if you hold a lock. All programs must cooperate and use the locking functions to get reliable locking.

See also