Skip to main content

RecoveryRepository

Trait RecoveryRepository 

Source
pub trait RecoveryRepository: Send + Sync {
    // Required method
    fn recovery_snapshot<'a>(
        &'a self,
        execution_id: JobExecutionId,
        current_owner: &'a OwnerToken,
    ) -> Pin<Box<dyn Future<Output = Result<RecoverySnapshot, RepositoryError>> + Send + 'a>>;
}
Expand description

Adapter port for one bounded, server-time recovery observation.

Required Methods§

Source

fn recovery_snapshot<'a>( &'a self, execution_id: JobExecutionId, current_owner: &'a OwnerToken, ) -> Pin<Box<dyn Future<Output = Result<RecoverySnapshot, RepositoryError>> + Send + 'a>>

Reads one value-redacted snapshot without changing durable state.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§