pub trait KernelRecovery: Send + Sync {
// Required methods
fn recover(&self) -> KernelResult<RecoveryStats>;
fn checkpoint(&self) -> KernelResult<LogSequenceNumber>;
fn last_checkpoint_lsn(&self) -> Option<LogSequenceNumber>;
}Expand description
Recovery operations
Crash recovery and checkpoint management.
Required Methods§
Sourcefn recover(&self) -> KernelResult<RecoveryStats>
fn recover(&self) -> KernelResult<RecoveryStats>
Perform crash recovery
Returns the number of transactions recovered (committed + aborted)
Sourcefn checkpoint(&self) -> KernelResult<LogSequenceNumber>
fn checkpoint(&self) -> KernelResult<LogSequenceNumber>
Create a checkpoint
Sourcefn last_checkpoint_lsn(&self) -> Option<LogSequenceNumber>
fn last_checkpoint_lsn(&self) -> Option<LogSequenceNumber>
Get the last checkpoint LSN
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".