pub enum Durability {
Sync,
Group,
None,
}Expand description
How writes are made durable.
Variants§
Sync
fsync every push and ack (acks unless Builder::durable_acks is off).
Strongest, slowest.
Group
Batch concurrent pushes behind a single fsync; acks fsync each by default
(see Builder::durable_acks). Same durability as Sync with far less
fsync overhead under load.
None
Do not fsync. Fastest, but no durability guarantee: recent items can be lost on a crash (the backend persists on its own schedule, if at all).
Trait Implementations§
Source§impl Clone for Durability
impl Clone for Durability
Source§fn clone(&self) -> Durability
fn clone(&self) -> Durability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Durability
Source§impl Debug for Durability
impl Debug for Durability
Source§impl Default for Durability
impl Default for Durability
Source§fn default() -> Durability
fn default() -> Durability
Returns the “default value” for a type. Read more
impl Eq for Durability
Source§impl PartialEq for Durability
impl PartialEq for Durability
impl StructuralPartialEq for Durability
Auto Trait Implementations§
impl Freeze for Durability
impl RefUnwindSafe for Durability
impl Send for Durability
impl Sync for Durability
impl Unpin for Durability
impl UnsafeUnpin for Durability
impl UnwindSafe for Durability
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