pub enum FsyncMode {
Never,
EveryAppend,
Interval(Duration),
}
Expand description
Configuration for fsync behavior
Variants§
Never
Never call fsync (fastest, least durable)
EveryAppend
Call fsync after every append operation (slowest, most durable)
Interval(Duration)
Call fsync at most once per interval
Trait Implementations§
impl Copy for FsyncMode
impl Eq for FsyncMode
impl StructuralPartialEq for FsyncMode
Auto Trait Implementations§
impl Freeze for FsyncMode
impl RefUnwindSafe for FsyncMode
impl Send for FsyncMode
impl Sync for FsyncMode
impl Unpin for FsyncMode
impl UnwindSafe for FsyncMode
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