Skip to main content

try_lock

Function try_lock 

Source
pub fn try_lock(file: File) -> Result<Option<ExclusiveLock>, Error>
Expand description

Take the exclusive lock on file without waiting: Ok(None) if another handle holds it.