pub enum DwbMode {
Off,
Buffered,
Direct,
}Expand description
I/O mode for the double-write buffer file.
Variants§
Off
DWB disabled — no torn-write protection. DoubleWriteBuffer::open
returns None.
Buffered
Buffered I/O (page cache + fsync). Default when the parent WAL
does not use O_DIRECT.
Direct
O_DIRECT I/O via an aligned buffer. The intended companion to an
O_DIRECT WAL: keeps DWB bytes out of the page cache.
Implementations§
Trait Implementations§
impl Copy for DwbMode
impl Eq for DwbMode
impl StructuralPartialEq for DwbMode
Auto Trait Implementations§
impl Freeze for DwbMode
impl RefUnwindSafe for DwbMode
impl Send for DwbMode
impl Sync for DwbMode
impl Unpin for DwbMode
impl UnsafeUnpin for DwbMode
impl UnwindSafe for DwbMode
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