pub trait StorageRecoveryOps:
Send
+ Sync
+ Debug {
// Required methods
fn needs_recovery(&self) -> bool;
fn recover_from_wal(&self) -> StorageResult<RecoveryStats>;
fn recover_from_wal_with_config(
&self,
config: RecoveryConfig,
) -> StorageResult<RecoveryStats>;
// Provided method
fn init_with_recovery(&self) -> StorageResult<Option<RecoveryStats>> { ... }
}Expand description
WAL recovery operations.
Required Methods§
fn needs_recovery(&self) -> bool
fn recover_from_wal(&self) -> StorageResult<RecoveryStats>
fn recover_from_wal_with_config( &self, config: RecoveryConfig, ) -> StorageResult<RecoveryStats>
Provided Methods§
fn init_with_recovery(&self) -> StorageResult<Option<RecoveryStats>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".