pub struct SledStateStoreBuilder { /* private fields */ }
Expand description
Builder for SledStateStoreBuilderConfig
.
Implementations§
Source§impl 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
Source§impl SledStateStoreBuilder
impl SledStateStoreBuilder
pub fn build(&mut self) -> Result<SledStateStore, SledStoreError>
Trait Implementations§
Source§impl Clone for SledStateStoreBuilder
impl Clone for SledStateStoreBuilder
Source§fn clone(&self) -> SledStateStoreBuilder
fn clone(&self) -> SledStateStoreBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SledStateStoreBuilder
impl RefUnwindSafe for SledStateStoreBuilder
impl Send for SledStateStoreBuilder
impl Sync for SledStateStoreBuilder
impl Unpin for SledStateStoreBuilder
impl UnwindSafe for SledStateStoreBuilder
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