Module matrix_sdk::store
source · [−]Expand description
Functions and types to initialize a store.
The re-exports present here depend on the store-related features that are enabled:
sled
provides aStateStore
, and aCryptoStore
for encryption data ife2e-encryption
is enabled. This is the default persistent store implementation for non-WebAssembly targets.indexeddb
, too, provides aStateStore
and aCryptoStore
ifencryption
is also enabled. This is the default persistent store implementation for WebAssembly targets.
Both options provide a make_store_config
convenience method to create a
StoreConfig
for ClientBuilder::store_config()
.
Structs
A sled based cryptostore.
Enums
All the errors that can occur when opening a sled store.
Functions
make_store_config
state-store
or crypto-store
Create a StoreConfig
with an opened sled StateStore
that uses the
given path and passphrase. If encryption
is enabled, a CryptoStore
with the same parameters is also opened.