pub struct WalWriterConfig {
pub write_buffer_size: usize,
pub alignment: usize,
pub use_direct_io: bool,
pub dwb_mode: Option<DwbMode>,
}Expand description
Configuration for the WAL writer.
Fields§
§write_buffer_size: usizeSize of the aligned write buffer (rounded up to alignment).
alignment: usizeO_DIRECT alignment (typically 4096 for NVMe).
use_direct_io: boolWhether to use O_DIRECT. Set to false for testing on filesystems
that don’t support it (e.g., tmpfs).
dwb_mode: Option<DwbMode>Double-write buffer I/O mode. None means “mirror the parent” —
Direct when use_direct_io is true, Buffered otherwise.
Some(DwbMode::Off) disables the DWB entirely.
Trait Implementations§
Source§impl Clone for WalWriterConfig
impl Clone for WalWriterConfig
Source§fn clone(&self) -> WalWriterConfig
fn clone(&self) -> WalWriterConfig
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 moreSource§impl Debug for WalWriterConfig
impl Debug for WalWriterConfig
Auto Trait Implementations§
impl Freeze for WalWriterConfig
impl RefUnwindSafe for WalWriterConfig
impl Send for WalWriterConfig
impl Sync for WalWriterConfig
impl Unpin for WalWriterConfig
impl UnsafeUnpin for WalWriterConfig
impl UnwindSafe for WalWriterConfig
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