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