Skip to main content

read_lock_owner

Function read_lock_owner 

Source
pub fn read_lock_owner(lock_dir: &Path) -> Result<Option<LockOwner>>
Expand description

Read the lock owner metadata from the lock directory.

Returns Ok(None) if no owner file exists, Ok(Some(LockOwner)) if the owner file exists and is valid, or an error if the file cannot be read.