pub struct StoreConfig {
pub data_dir: String,
pub max_segment_size: u64,
pub compaction_interval: Duration,
pub fsync_interval: Duration,
pub emit_snapshot_after_compaction: bool,
pub worker_threads: usize,
}Expand description
Configuration for the key-value store
Fields§
§data_dir: StringDirectory where data files are stored
max_segment_size: u64Maximum size of a log segment in bytes before rotation
compaction_interval: DurationInterval between compaction runs
fsync_interval: DurationInterval between fsync operations
emit_snapshot_after_compaction: boolWhether to emit a snapshot after compaction
worker_threads: usizeNumber of worker threads for background tasks
Trait Implementations§
Source§impl Clone for StoreConfig
impl Clone for StoreConfig
Source§fn clone(&self) -> StoreConfig
fn clone(&self) -> StoreConfig
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 StoreConfig
impl Debug for StoreConfig
Auto Trait Implementations§
impl Freeze for StoreConfig
impl RefUnwindSafe for StoreConfig
impl Send for StoreConfig
impl Sync for StoreConfig
impl Unpin for StoreConfig
impl UnwindSafe for StoreConfig
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