Skip to main content

ExampleSagaStepHandler

Trait ExampleSagaStepHandler 

Source
pub trait ExampleSagaStepHandler: Send + Sync {
    // Required methods
    fn handle_validate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        instance: &'life1 mut ExampleSagaFlowInstance,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ExampleSagaFlowStep>, FlowError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_write_example<'life0, 'life1, 'async_trait>(
        &'life0 self,
        instance: &'life1 mut ExampleSagaFlowInstance,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ExampleSagaFlowStep>, FlowError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_done<'life0, 'life1, 'async_trait>(
        &'life0 self,
        instance: &'life1 mut ExampleSagaFlowInstance,
    ) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_rejected<'life0, 'life1, 'async_trait>(
        &'life0 self,
        instance: &'life1 mut ExampleSagaFlowInstance,
    ) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Step handler trait for ExampleSaga flow

Required Methods§

Source

fn handle_validate<'life0, 'life1, 'async_trait>( &'life0 self, instance: &'life1 mut ExampleSagaFlowInstance, ) -> Pin<Box<dyn Future<Output = Result<Option<ExampleSagaFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handle validate step

Source

fn handle_write_example<'life0, 'life1, 'async_trait>( &'life0 self, instance: &'life1 mut ExampleSagaFlowInstance, ) -> Pin<Box<dyn Future<Output = Result<Option<ExampleSagaFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handle write_example step

Source

fn handle_done<'life0, 'life1, 'async_trait>( &'life0 self, instance: &'life1 mut ExampleSagaFlowInstance, ) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handle terminal step done

Source

fn handle_rejected<'life0, 'life1, 'async_trait>( &'life0 self, instance: &'life1 mut ExampleSagaFlowInstance, ) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handle terminal step rejected

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§