Module matrix_sdk_base::store
source · Expand description
The state store holds the overall state for rooms, users and their
profiles and their timelines. It is an overall cache for faster access
and convenience- accessible through Store
.
Implementing the StateStore
trait, you can plug any storage backend
into the store for the actual storage. By default this brings an in-memory
store.
Re-exports
pub use self::integration_tests::StateStoreIntegrationTests;
testing
Modules
- integration_tests
testing
Trait and macro of integration tests for StateStore implementations. - Data migration helpers for StateStore implementations.
Structs
- In-Memory, non-persistent implementation of the
StateStore
- Store state changes and pass them to the StateStore.
- Configuration for the state store and, when
encryption
is enabled, for the crypto store.
Enums
- A key for key-value data.
- A value for key-value data that should be persisted into the store.
- Error type for the
StoreCipher
operations. - State store specific error type.
Traits
- A type that can be type-erased into
Arc<dyn StateStore>
. - An abstract state store trait that can be used to implement different stores for the SDK.
- Convenience functionality for state stores.
Type Aliases
- BoxStream of owned Types
- A type-erased
StateStore
. - A
StateStore
specific result type.