pub struct StoreWalConfig {
pub default_collection_config: CollectionWalConfig,
pub collection_configs: HashMap<String, CollectionWalConfig>,
pub store_failure_mode: WalFailureMode,
pub auto_checkpoint: bool,
pub checkpoint_interval_secs: u64,
pub max_wal_size_bytes: u64,
}Expand description
Configuration for WAL operations at the store level.
This struct defines global WAL settings that apply to all collections in the store, with collection-specific overrides possible.
Fields§
§default_collection_config: CollectionWalConfigDefault WAL configuration for collections
collection_configs: HashMap<String, CollectionWalConfig>Collection-specific WAL configurations (overrides defaults)
store_failure_mode: WalFailureModeFailure handling mode for store-level WAL operations (checkpoints, etc.)
auto_checkpoint: boolWhether to enable automatic store-wide checkpoints
checkpoint_interval_secs: u64Interval for automatic checkpoints (in seconds, 0 = disabled)
max_wal_size_bytes: u64Maximum WAL file size before forcing checkpoint (in bytes)
Trait Implementations§
Source§impl Clone for StoreWalConfig
impl Clone for StoreWalConfig
Source§fn clone(&self) -> StoreWalConfig
fn clone(&self) -> StoreWalConfig
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 StoreWalConfig
impl Debug for StoreWalConfig
Source§impl Default for StoreWalConfig
impl Default for StoreWalConfig
Source§impl<'de> Deserialize<'de> for StoreWalConfig
impl<'de> Deserialize<'de> for StoreWalConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StoreWalConfig
impl RefUnwindSafe for StoreWalConfig
impl Send for StoreWalConfig
impl Sync for StoreWalConfig
impl Unpin for StoreWalConfig
impl UnwindSafe for StoreWalConfig
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