Skip to main content

Module store

Module store 

Source
Expand description

The StateStore trait and the in-memory reference implementation.

Structs§

InMemoryStore
Single-node in-memory store: atomic counters behind a short transaction mutex that serializes check-and-spend so multi-key spends stay atomic.
Spend
One key/amount/limit entry in an atomic multi-dimensional spend.

Enums§

StateError
State-layer errors.

Traits§

StateStore
Atomic counter operations. Every mutation is atomic with respect to concurrent callers; try_spend is a single check-and-spend (never a read-then-write).