#[non_exhaustive]pub enum RecoveryAction {
OpenedNormally,
QuarantinedCorrupt,
QuarantinedUnreadable {
cause: UnreadableCause,
consecutive_failures: u32,
},
}Expand description
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.
OpenedNormally
The database opened; nothing was moved. Any failure counter was reset.
QuarantinedCorrupt
The database was corrupt and the RecoveryPolicy allowed quarantine.
QuarantinedUnreadable
The database could not be read for consecutive_failures consecutive opens and the
UnreadablePolicy allowed quarantine. The old file is preserved at quarantined.
Trait Implementations§
Source§impl Clone for RecoveryAction
impl Clone for RecoveryAction
Source§impl Debug for RecoveryAction
impl Debug for RecoveryAction
impl Eq for RecoveryAction
Source§impl PartialEq for RecoveryAction
impl PartialEq for RecoveryAction
impl StructuralPartialEq for RecoveryAction
Auto Trait Implementations§
impl Freeze for RecoveryAction
impl RefUnwindSafe for RecoveryAction
impl Send for RecoveryAction
impl Sync for RecoveryAction
impl Unpin for RecoveryAction
impl UnsafeUnpin for RecoveryAction
impl UnwindSafe for RecoveryAction
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