pub async fn claim<S: Storage + ?Sized>(
storage: &S,
now: WallTime,
) -> Result<Claim>Expand description
Claim the writer’s lock on storage’s container — what
Storage::claim does for a storage with no lock of its own.
A lock entry whose process is gone is stale — a writer that died without releasing it — and is broken rather than left to make the container unopenable forever. So is one that does not parse: it names nobody, and a container cannot be held hostage by a corrupt byte.
§Errors
Failure to write the lock entry.