pub enum FsyncPolicy {
EachOp,
OnSnapshot,
}Expand description
When journal appends reach the disk.
Variants§
EachOp
Fsync after every appended journal record — every acknowledged mutation survives a power cut. The default: durability is worth microseconds at this write volume.
OnSnapshot
Fsync only at snapshot boundaries. Faster; an OS crash may lose the journal tail written since the last snapshot.
Trait Implementations§
Source§impl Clone for FsyncPolicy
impl Clone for FsyncPolicy
Source§fn clone(&self) -> FsyncPolicy
fn clone(&self) -> FsyncPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FsyncPolicy
Source§impl Debug for FsyncPolicy
impl Debug for FsyncPolicy
Source§impl Default for FsyncPolicy
impl Default for FsyncPolicy
Source§fn default() -> FsyncPolicy
fn default() -> FsyncPolicy
Returns the “default value” for a type. Read more
impl Eq for FsyncPolicy
Source§impl PartialEq for FsyncPolicy
impl PartialEq for FsyncPolicy
impl StructuralPartialEq for FsyncPolicy
Auto Trait Implementations§
impl Freeze for FsyncPolicy
impl RefUnwindSafe for FsyncPolicy
impl Send for FsyncPolicy
impl Sync for FsyncPolicy
impl Unpin for FsyncPolicy
impl UnsafeUnpin for FsyncPolicy
impl UnwindSafe for FsyncPolicy
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