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§
Sourcefn 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 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
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Get the condition description