Struct matrix_sdk_base::store::StoreConfig
source · pub struct StoreConfig { /* private fields */ }
Expand description
Configuration for the state store and, when encryption
is enabled, for the
crypto store.
Examples
let store_config = StoreConfig::new();
Implementations§
source§impl StoreConfig
impl StoreConfig
sourcepub fn crypto_store(self, store: impl IntoCryptoStore) -> Self
Available on crate feature e2e-encryption
only.
pub fn crypto_store(self, store: impl IntoCryptoStore) -> Self
e2e-encryption
only.Set a custom implementation of a CryptoStore
.
The crypto store must be opened before being set.
sourcepub fn state_store(self, store: impl IntoStateStore) -> Self
pub fn state_store(self, store: impl IntoStateStore) -> Self
Set a custom implementation of a StateStore
.
Trait Implementations§
source§impl Clone for StoreConfig
impl Clone for StoreConfig
source§fn clone(&self) -> StoreConfig
fn clone(&self) -> StoreConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StoreConfig
Available on non-tarpaulin_include
only.
impl Debug for StoreConfig
Available on non-
tarpaulin_include
only.Auto Trait Implementations§
impl !RefUnwindSafe for StoreConfig
impl Send for StoreConfig
impl Sync for StoreConfig
impl Unpin for StoreConfig
impl !UnwindSafe for StoreConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more