pub enum RecoveryMode {
AutoTruncate,
Strict,
}Expand description
How to open a database when the append log tail may be torn or hold an uncommitted transaction.
Variants§
AutoTruncate
Truncate the store to the last committed prefix (see docs/migration_0.7_to_0.8.md).
Strict
Return crate::error::FormatError::UncleanLogTail if the tail is not fully committed.
Trait Implementations§
Source§impl Clone for RecoveryMode
impl Clone for RecoveryMode
Source§fn clone(&self) -> RecoveryMode
fn clone(&self) -> RecoveryMode
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 RecoveryMode
Source§impl Debug for RecoveryMode
impl Debug for RecoveryMode
impl Eq for RecoveryMode
Source§impl PartialEq for RecoveryMode
impl PartialEq for RecoveryMode
Source§fn eq(&self, other: &RecoveryMode) -> bool
fn eq(&self, other: &RecoveryMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecoveryMode
Auto Trait Implementations§
impl Freeze for RecoveryMode
impl RefUnwindSafe for RecoveryMode
impl Send for RecoveryMode
impl Sync for RecoveryMode
impl Unpin for RecoveryMode
impl UnsafeUnpin for RecoveryMode
impl UnwindSafe for RecoveryMode
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