pub struct MemoryStoreConfig {
pub max_snapshots: usize,
pub max_operations_before_compact: usize,
pub auto_compact: bool,
}Expand description
Configuration for MemoryStore.
Fields§
§max_snapshots: usizeMaximum number of snapshots to keep
max_operations_before_compact: usizeMaximum operations before auto-compact
auto_compact: boolWhether to auto-compact
Trait Implementations§
Source§impl Clone for MemoryStoreConfig
impl Clone for MemoryStoreConfig
Source§fn clone(&self) -> MemoryStoreConfig
fn clone(&self) -> MemoryStoreConfig
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 moreSource§impl Debug for MemoryStoreConfig
impl Debug for MemoryStoreConfig
Auto Trait Implementations§
impl Freeze for MemoryStoreConfig
impl RefUnwindSafe for MemoryStoreConfig
impl Send for MemoryStoreConfig
impl Sync for MemoryStoreConfig
impl Unpin for MemoryStoreConfig
impl UnsafeUnpin for MemoryStoreConfig
impl UnwindSafe for MemoryStoreConfig
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