pub enum SyncMode {
GroupSync {
interval_ms: u32,
},
}Expand description
Durability mode for committed transactions.
Commits write WAL bytes to the OS before returning, then a background
flusher, explicit force_fsync, checkpoint, Database::sync, or clean
drop creates the storage durability boundary.
Variants§
GroupSync
Write commit bytes to the OS immediately, but defer fsync until an
explicit durability boundary or the background flusher interval.
Background fsync failures poison the WAL through Wal::bg_failure.
Trait Implementations§
impl Copy for SyncMode
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