Skip to main content

Module api

Module api 

Source
Expand description

Store traits.

StateStore is object-safe, so the registry holds it erased. It carries the changelog hooks. Every #3 store is changelog-logged, so the erased registry can restore and drain through &mut dyn StateStore. KeyValueStore<K,V> is the typed get/put/delete surface.

Traitsยง

KeyValueStore
A keyed store. The in-memory store implements it, and a processor gets this typed view from ProcessorContext::get_state_store.
StateStore
Lifecycle, identity, and changelog hooks for any store.