Skip to main content

WorkflowDriver

Trait WorkflowDriver 

Source
pub trait WorkflowDriver<Context>: Send + Sync
where Context: Send + Sync,
{ // Required methods fn name(&self) -> &'static str; fn spec_ids(&self) -> &'static [&'static str]; fn validate_specs(&self) -> Result<(), String>; fn evaluate<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, context: &'life1 Context, item: &'life2 WorkItem, ) -> Pin<Box<dyn Future<Output = Result<DriverOutcome, String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; }

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn spec_ids(&self) -> &'static [&'static str]

Source

fn validate_specs(&self) -> Result<(), String>

Source

fn evaluate<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, context: &'life1 Context, item: &'life2 WorkItem, ) -> Pin<Box<dyn Future<Output = Result<DriverOutcome, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§