Module 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.

Modules§

integration_teststesting
Trait and macro of integration tests for StateStore implementations.
migration_helpers
Data migration helpers for StateStore implementations.

Structs§

ChildTransactionId
A transaction id identifying a DependentQueuedRequest rather than its parent QueuedRequest.
ComposerDraft
Current draft of the composer for the room.
DependentQueuedRequest
A request to be sent, depending on a QueuedRequest to be sent first.
FinishUploadThumbnailInfo
Detailed record about a thumbnail used when finishing a media upload.
MemoryStore
In-memory, non-persistent implementation of the StateStore.
QueuedRequest
A request to be sent with a send queue.
SentMediaInfo
Information about a media (and its thumbnail) that have been sent to an homeserver.
SerializableEventContent
A thin wrapper to serialize a AnyMessageLikeEventContent.
ServerCapabilities
Server capabilities returned by the /client/versions endpoint.
StateChanges
Store state changes and pass them to the StateStore.
StoreConfig
Configuration for the various stores.

Enums§

ComposerDraftType
The type of draft of the composer.
DependentQueuedRequestKind
The specific user intent that characterizes a DependentQueuedRequestKind.
QueueWedgeError
Represents a failed to send unrecoverable error of an event sent via the send queue.
QueuedRequestKind
The kind of a send queue request.
SentRequestKey
A unique key (identifier) indicating that a transaction has been successfully sent to the server.
StateStoreDataKey
A key for key-value data.
StateStoreDataValue
A value for key-value data that should be persisted into the store.
StoreEncryptionError
Error type for the StoreCipher operations.
StoreError
State store specific error type.

Traits§

IntoStateStore
A type that can be type-erased into Arc<dyn StateStore>.
StateStore
An abstract state store trait that can be used to implement different stores for the SDK.
StateStoreExt
Convenience functionality for state stores.
StateStoreIntegrationTests
StateStore integration tests.

Type Aliases§

DynStateStore
A type-erased StateStore.
Result
A StateStore specific result type.