pub enum SyncMode {
EveryWrite,
Batched(usize),
OsManaged,
}Expand description
Controls when fsync is called on the WAL segment file.
Variants§
EveryWrite
Call fsync after every write.
Batched(usize)
Call fsync after every n writes.
OsManaged
Let the OS decide when to flush — no explicit fsync.
Trait Implementations§
impl Eq for SyncMode
impl StructuralPartialEq for SyncMode
Auto Trait Implementations§
impl Freeze for SyncMode
impl RefUnwindSafe for SyncMode
impl Send for SyncMode
impl Sync for SyncMode
impl Unpin for SyncMode
impl UnsafeUnpin for SyncMode
impl UnwindSafe for SyncMode
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