pub enum WalRecovery {
Clean,
NeedsReplay {
target_height: Height,
},
}Expand description
Result of WAL recovery check on startup.
Variants§
Clean
No recovery needed — last commit completed successfully or WAL is empty.
NeedsReplay
A commit was in progress when the node crashed. The application should
re-execute blocks from last_committed_height + 1 to target_height.
Trait Implementations§
Source§impl Clone for WalRecovery
impl Clone for WalRecovery
Source§fn clone(&self) -> WalRecovery
fn clone(&self) -> WalRecovery
Returns a duplicate 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 WalRecovery
impl Debug for WalRecovery
Source§impl PartialEq for WalRecovery
impl PartialEq for WalRecovery
impl StructuralPartialEq for WalRecovery
Auto Trait Implementations§
impl Freeze for WalRecovery
impl RefUnwindSafe for WalRecovery
impl Send for WalRecovery
impl Sync for WalRecovery
impl Unpin for WalRecovery
impl UnsafeUnpin for WalRecovery
impl UnwindSafe for WalRecovery
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