Trait Condition

Source
pub trait Condition: Send + Sync {
    // Required methods
    fn check<'life0, 'life1, 'async_trait>(
        &'life0 self,
        context: &'life1 WorkflowContext,
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn description(&self) -> &str;
}
Expand description

Condition that must be satisfied for stage execution

Required Methods§

Source

fn check<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 WorkflowContext, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Check if the condition is satisfied

Source

fn description(&self) -> &str

Get the condition description

Implementors§