pub enum FlushMode {
Immediate,
Deferred,
}Expand description
Flush mode controls when entries are persisted to disk.
Variants§
Immediate
Persist every write immediately (safe, slow — ~1000x overhead).
Each append() does a redb commit with fsync.
Deferred
Buffer writes in memory, persist on explicit flush() (fast, deferred durability).
Entries are in the oplog immediately (read-your-writes) but not on disk until flush.
On crash: entries since last flush are lost. Peers restore them on next sync.
Trait Implementations§
impl Copy for FlushMode
impl StructuralPartialEq for FlushMode
Auto Trait Implementations§
impl Freeze for FlushMode
impl RefUnwindSafe for FlushMode
impl Send for FlushMode
impl Sync for FlushMode
impl Unpin for FlushMode
impl UnsafeUnpin for FlushMode
impl UnwindSafe for FlushMode
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