pub fn lock_vault(
data_dir: &Path,
vault_id: &str,
wait: bool,
) -> Result<Option<VaultLock>, CloudError>Expand description
The advisory lock of one vault’s sync. wait: block until free (the
CLI); otherwise Ok(None) when another sync holds it (the thread skips).