pub struct WalConfig {
pub max_segment_size: u64,
pub sync_on_write: bool,
}Expand description
WAL configuration.
Fields§
§max_segment_size: u64Maximum segment file size in bytes.
sync_on_write: boolWhether to fsync after every write (durable but slower).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WalConfig
impl RefUnwindSafe for WalConfig
impl Send for WalConfig
impl Sync for WalConfig
impl Unpin for WalConfig
impl UnwindSafe for WalConfig
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