pub trait RecoveryRepository: Send + Sync {
// Required method
fn recovery_snapshot<'a>(
&'a self,
execution_id: JobExecutionId,
current_owner: &'a OwnerToken,
) -> BoxFuture<'a, Result<RecoverySnapshot, RepositoryError>>;
}Expand description
Adapter port for one bounded, server-time recovery observation.
Required Methods§
Sourcefn recovery_snapshot<'a>(
&'a self,
execution_id: JobExecutionId,
current_owner: &'a OwnerToken,
) -> BoxFuture<'a, Result<RecoverySnapshot, RepositoryError>>
fn recovery_snapshot<'a>( &'a self, execution_id: JobExecutionId, current_owner: &'a OwnerToken, ) -> BoxFuture<'a, Result<RecoverySnapshot, RepositoryError>>
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".