Enum FsyncPolicy
pub enum FsyncPolicy {
EveryWrite,
Manual,
}Expand description
Controls when the writer calls fsync on the journal file.
Variants§
EveryWrite
Fsync after every write (safe default for production).
Manual
No automatic fsync — caller must call JournalWriter::sync manually.
Suitable for backtest throughput.
Trait Implementations§
§impl Clone for FsyncPolicy
impl Clone for FsyncPolicy
§fn clone(&self) -> FsyncPolicy
fn clone(&self) -> FsyncPolicy
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for FsyncPolicy
impl Debug for FsyncPolicy
§impl PartialEq for FsyncPolicy
impl PartialEq for FsyncPolicy
impl Copy for FsyncPolicy
impl Eq 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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)