pub fn release_lock() -> Result<(), Error>Expand description
Returns an error because only dropping the owning LockGuard can release
the advisory lock. The lock file itself is intentionally never removed
because unlinking it can let a waiting process and a newly-created inode be
locked concurrently.
ยงErrors
Returns an error if the lock path cannot be determined.