Skip to main content

try_lease

Function try_lease 

Source
pub fn try_lease(home: &Path, name: &str) -> Result<Option<Lease>>
Expand description

Try to own a named cross-process singleton, without PID-based stale handling. Names are hashed, so callers may use logical keys containing paths or colons.