pub trait RecoveryStrategy: Send + Sync {
// Required method
fn handle_step_failure<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
step: &'life1 PlanStep,
error: &'life2 str,
retry_count: usize,
) -> Pin<Box<dyn Future<Output = Result<RecoveryAction, AgentError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}Expand description
Decides what to do when a step fails.
Required Methods§
fn handle_step_failure<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
step: &'life1 PlanStep,
error: &'life2 str,
retry_count: usize,
) -> Pin<Box<dyn Future<Output = Result<RecoveryAction, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".