pub enum FlushPolicy {
Never,
Manual,
Always,
EveryBytes(usize),
EveryWrites(usize),
EveryMillis(u64),
}
Expand description
Policy controlling when to flush dirty pages to disk.
Variants§
Never
Never flush implicitly; flush() must be called by the user.
Manual
Alias of Never for semantic clarity when using the builder API.
Always
Flush after every write/update_region call.
EveryBytes(usize)
Flush when at least N bytes have been written since the last flush.
EveryWrites(usize)
Flush after every W writes (calls to update_region).
EveryMillis(u64)
Flush automatically every N milliseconds when there are pending writes.
Trait Implementations§
Source§impl Clone for FlushPolicy
impl Clone for FlushPolicy
Source§fn clone(&self) -> FlushPolicy
fn clone(&self) -> FlushPolicy
Returns a duplicate 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 Debug for FlushPolicy
impl Debug for FlushPolicy
Source§impl Default for FlushPolicy
impl Default for FlushPolicy
Source§fn default() -> FlushPolicy
fn default() -> FlushPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for FlushPolicy
impl PartialEq for FlushPolicy
impl Copy for FlushPolicy
impl Eq for FlushPolicy
impl StructuralPartialEq for FlushPolicy
Auto Trait Implementations§
impl Freeze for FlushPolicy
impl RefUnwindSafe for FlushPolicy
impl Send for FlushPolicy
impl Sync for FlushPolicy
impl Unpin for FlushPolicy
impl UnwindSafe for FlushPolicy
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