Enum spacetimedb::db::FsyncPolicy
source · pub enum FsyncPolicy {
Never,
EveryTx,
}Expand description
How often Txn messages are physically persisted to the WAL.
Variants§
Never
Flush WAL writes to OS buffers and let OS schedule the write to disk.
EveryTx
Every Txn should be fsync’d to disk.
Trait Implementations§
source§impl Clone for FsyncPolicy
impl Clone for FsyncPolicy
source§fn clone(&self) -> FsyncPolicy
fn clone(&self) -> FsyncPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl PartialEq for FsyncPolicy
impl PartialEq for FsyncPolicy
source§fn eq(&self, other: &FsyncPolicy) -> bool
fn eq(&self, other: &FsyncPolicy) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for FsyncPolicy
impl StructuralPartialEq for FsyncPolicy
Auto Trait Implementations§
impl RefUnwindSafe for FsyncPolicy
impl Send for FsyncPolicy
impl Sync for FsyncPolicy
impl Unpin 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