pub struct RecoveryMarker { /* private fields */ }Expand description
Recovery marker for idempotent crash recovery
Implementations§
Source§impl RecoveryMarker
impl RecoveryMarker
pub fn new(data_dir: &Path) -> Self
Sourcepub fn needs_recovery(&self) -> bool
pub fn needs_recovery(&self) -> bool
Check if recovery is needed
Sourcepub fn recovery_completed(&self) -> bool
pub fn recovery_completed(&self) -> bool
Check if recovery already completed for current log state
Sourcepub fn mark_in_progress(&self)
pub fn mark_in_progress(&self)
Mark recovery as in progress
Sourcepub fn mark_complete(&self)
pub fn mark_complete(&self)
Mark recovery as complete
Auto Trait Implementations§
impl Freeze for RecoveryMarker
impl RefUnwindSafe for RecoveryMarker
impl Send for RecoveryMarker
impl Sync for RecoveryMarker
impl Unpin for RecoveryMarker
impl UnsafeUnpin for RecoveryMarker
impl UnwindSafe for RecoveryMarker
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