#[non_exhaustive]pub enum Durability {
Full,
Normal,
}Expand description
How hard a commit is pushed to disk, per connection. Full survives
power loss: every commit uses fullfsync, which Apple platforms need.
Normal is faster and can lose the last commits on power loss, never on
a process kill; WAL checkpoints still use fullfsync, so no corruption.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for Durability
impl Clone for Durability
impl Copy for Durability
Source§impl Debug for Durability
impl Debug for Durability
Source§impl Default for Durability
impl Default for Durability
impl Eq for Durability
Source§impl PartialEq for Durability
impl PartialEq for Durability
impl StructuralPartialEq for Durability
Auto Trait Implementations§
impl Forget for Durability
impl Freeze for Durability
impl Move 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