SagaStepExecutor

Trait SagaStepExecutor 

Source
pub trait SagaStepExecutor {
    // Required methods
    fn execute_step<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        action: &'life1 SagaAction,
        context: &'life2 HashMap<String, String>,
    ) -> Pin<Box<dyn Future<Output = Result<StepResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn compensate_step<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        action: &'life1 SagaAction,
        context: &'life2 HashMap<String, String>,
    ) -> Pin<Box<dyn Future<Output = Result<StepResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Trait for implementing saga step executors

Required Methods§

Source

fn execute_step<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, action: &'life1 SagaAction, context: &'life2 HashMap<String, String>, ) -> Pin<Box<dyn Future<Output = Result<StepResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn compensate_step<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, action: &'life1 SagaAction, context: &'life2 HashMap<String, String>, ) -> Pin<Box<dyn Future<Output = Result<StepResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§