pub struct SegmentedWalConfig {
pub wal_dir: PathBuf,
pub segment_target_size: u64,
pub writer_config: WalWriterConfig,
}Expand description
Configuration for the segmented WAL.
Fields§
§wal_dir: PathBufWAL directory path.
segment_target_size: u64Target segment size in bytes. When the active segment exceeds this, a new segment is created. This is a soft limit — the current record is always completed before rolling.
writer_config: WalWriterConfigWriter configuration (alignment, buffer size, O_DIRECT).
Implementations§
Trait Implementations§
Source§impl Clone for SegmentedWalConfig
impl Clone for SegmentedWalConfig
Source§fn clone(&self) -> SegmentedWalConfig
fn clone(&self) -> SegmentedWalConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SegmentedWalConfig
impl RefUnwindSafe for SegmentedWalConfig
impl Send for SegmentedWalConfig
impl Sync for SegmentedWalConfig
impl Unpin for SegmentedWalConfig
impl UnsafeUnpin for SegmentedWalConfig
impl UnwindSafe for SegmentedWalConfig
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