Struct matrix_sdk_sled::SledStateStoreBuilder
source · [−]pub struct SledStateStoreBuilder { /* private fields */ }
Expand description
Builder for SledStateStoreBuilderConfig
.
Implementations
sourceimpl SledStateStoreBuilder
impl SledStateStoreBuilder
sourcepub fn path(&mut self, value: PathBuf) -> &mut Self
pub fn path(&mut self, value: PathBuf) -> &mut Self
Path to the sled store files, created if not yet existing
sourcepub fn passphrase(&mut self, value: String) -> &mut Self
pub fn passphrase(&mut self, value: String) -> &mut Self
Set the password the sled store is encrypted with (if any)
sourcepub fn migration_conflict_strategy(
&mut self,
value: MigrationConflictStrategy
) -> &mut Self
pub fn migration_conflict_strategy(
&mut self,
value: MigrationConflictStrategy
) -> &mut Self
The strategy to use when a merge conflict is found, see
MigrationConflictStrategy
for details
sourceimpl SledStateStoreBuilder
impl SledStateStoreBuilder
pub fn build(&mut self) -> Result<SledStateStore, SledStoreError>
Trait Implementations
sourceimpl Clone for SledStateStoreBuilder
impl Clone for SledStateStoreBuilder
sourcefn clone(&self) -> SledStateStoreBuilder
fn clone(&self) -> SledStateStoreBuilder
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 moreAuto Trait Implementations
impl RefUnwindSafe for SledStateStoreBuilder
impl Send for SledStateStoreBuilder
impl Sync for SledStateStoreBuilder
impl Unpin for SledStateStoreBuilder
impl UnwindSafe for SledStateStoreBuilder
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