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.
Example
let store_config = StoreConfig::new();Implementations
sourceimpl 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
sourceimpl Clone for StoreConfig
 
impl Clone for StoreConfig
sourcefn clone(&self) -> StoreConfig
 
fn clone(&self) -> StoreConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresourceimpl Debug for StoreConfig
Available on non-tarpaulin_include only. 
impl Debug for StoreConfig
Available on non-
tarpaulin_include only.sourceimpl Default for StoreConfig
 
impl Default for StoreConfig
sourcefn default() -> StoreConfig
 
fn default() -> StoreConfig
Returns the “default value” for a type. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more