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§
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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,
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".