Enum fjall::PersistMode
source · pub enum PersistMode {
Buffer,
SyncData,
SyncAll,
}Expand description
The persist mode allows setting the durability guarantee of previous writes
Variants§
Buffer
Flushes data to OS buffers. This allows the OS to write out data in case of an application crash.
When this function returns, data is not guaranteed to be persisted in case of a power loss event or OS crash.
SyncData
Flushes data using fdatasync.
Use if you know that fdatasync is sufficient for your file system and/or operating system.
SyncAll
Flushes data + metadata using fsync.
Trait Implementations§
source§impl Clone for PersistMode
impl Clone for PersistMode
source§fn clone(&self) -> PersistMode
fn clone(&self) -> PersistMode
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 Debug for PersistMode
impl Debug for PersistMode
source§impl PartialEq for PersistMode
impl PartialEq for PersistMode
impl Copy for PersistMode
impl Eq for PersistMode
impl StructuralPartialEq for PersistMode
Auto Trait Implementations§
impl Freeze for PersistMode
impl RefUnwindSafe for PersistMode
impl Send for PersistMode
impl Sync for PersistMode
impl Unpin for PersistMode
impl UnwindSafe for PersistMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.