Expand description
In-memory reference Registry backends with real lease and lapse semantics.
These are reference backends, not durable or production ones: they hold pacts in memory, so
nothing survives the process. They exist to demonstrate correct lifecycle semantics and to
calibrate against — durable backends live outside this workspace and prove themselves against
pacta-conformance just as these do.
MemoryRegistry implements the synchronous Registry. Behind the async feature,
[MemoryRegistryAsync] implements [pacta_contract::AsyncRegistry] over the same private
store, so the two bindings share one storage and cannot drift. Every eligibility decision and
state transition is delegated to the shared, pure pacta_contract::lifecycle kernel; the store
reads no clock — time is injected into claim and heartbeat.
Structs§
- Memory
Registry - An in-memory synchronous registry seeded with a fixed set of pacts.
- NotHeld
- The error a memory backend returns when a retainer is not the current holder, or when a heartbeat arrives after its lease has already lapsed.