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
pub fn crypto_store(self, store: impl IntoCryptoStore) -> Self
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 more
sourceimpl Debug for StoreConfig
impl Debug for StoreConfig
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more