pub enum AppendFsync {
Always,
EverySec,
No,
}Expand description
When to fsync the AOF to disk.
Variants§
Always
fsync after every write — safest, slowest.
EverySec
fsync at most once per second (call Aof::maybe_sync periodically).
No
Never fsync explicitly; leave it to the OS.
Trait Implementations§
impl Copy for Fsync
impl Eq for Fsync
impl StructuralPartialEq for Fsync
Auto Trait Implementations§
impl Freeze for Fsync
impl RefUnwindSafe for Fsync
impl Send for Fsync
impl Sync for Fsync
impl Unpin for Fsync
impl UnsafeUnpin for Fsync
impl UnwindSafe for Fsync
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