Expand description
Concurrent type-erased application data store for shared state.
AppDataStore stores one value per concrete type, keyed by TypeId. Values
are stored in Arc<dyn Any + Send + Sync> to allow cheap cloning and safe
sharing across threads. The underlying DashMap provides lock-free
concurrent reads and sharded writes, enabling multiple threads to insert
and retrieve state simultaneously without external synchronisation.
Typed accessors provide a small API surface while hiding the underlying
type-erasure details.
Structsยง
- AppData
Store - Stores application-scoped state values keyed by concrete type.