Skip to main content

RecoveryProposalPort

Trait RecoveryProposalPort 

Source
pub trait RecoveryProposalPort: Send + Sync {
    // Required method
    fn propose(
        &self,
        execution_id: JobExecutionId,
    ) -> BoxFuture<'_, Result<RecoveryProposal, RecoveryError>>;
}
Expand description

Produces the current evidence-bound recovery proposal for the CLI.

Required Methods§

Source

fn propose( &self, execution_id: JobExecutionId, ) -> BoxFuture<'_, Result<RecoveryProposal, RecoveryError>>

Gathers one proposal without changing durable state.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<R: RecoveryRepository> RecoveryProposalPort for RecoveryProposer<R>

Implementors§