pub enum CommitPolicy {
SyncFlush = 0,
Buffered = 1,
Delayed = 2,
NoSync = 3,
}
Expand description
Transaction commit policy.
The default policy is SyncFlush
.
Variants§
SyncFlush = 0
Flush the cache and synchronize the filesystem buffers for both database and log files on every commit.
Buffered = 1
Don’t flush the database cache to disk upon transaction commit.
Delayed = 2
Keep modified pages in the page pool (like Buffered
); commit delayed
transactions to the persistent storage at once when the total size of
all kept pages or the number of delayed commits reach a threshold
value.
NoSync = 3
Don’t synchronize the file system buffers explicitly and let the filesystem determine when the data is actually written to the media.
Auto Trait Implementations§
impl Freeze for CommitPolicy
impl RefUnwindSafe for CommitPolicy
impl Send for CommitPolicy
impl Sync for CommitPolicy
impl Unpin for CommitPolicy
impl UnwindSafe for CommitPolicy
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