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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.