Struct matrix_sdk::config::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 new() -> StoreConfig
pub fn new() -> StoreConfig
Create a new default StoreConfig
.
sourcepub fn crypto_store(
self,
store: Box<dyn CryptoStore + 'static, Global>
) -> StoreConfig
Available on crate feature e2e-encryption
only.
pub fn crypto_store(
self,
store: Box<dyn CryptoStore + 'static, Global>
) -> StoreConfig
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: Box<dyn StateStore + 'static, Global>
) -> StoreConfig
pub fn state_store(
self,
store: Box<dyn StateStore + 'static, Global>
) -> StoreConfig
Set a custom implementation of a StateStore
.
Trait Implementations
sourceimpl 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 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>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
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