Skip to main content

StepCallbacks

Trait StepCallbacks 

Source
pub trait StepCallbacks<C, W>: Send + Sync
where C: Context, W: Workflow<C>,
{ // Required methods fn on_started<'life0, 'async_trait>( &'life0 self, run_id: String, item: <W as Workflow<C>>::WorkItem, ) -> Pin<Box<dyn Future<Output = Result<(), FloxideError>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn on_item_processed<'life0, 'async_trait>( &'life0 self, run_id: String, item: <W as Workflow<C>>::WorkItem, outcome: ItemProcessedOutcome, ) -> Pin<Box<dyn Future<Output = Result<(), FloxideError>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; }

Required Methods§

Source

fn on_started<'life0, 'async_trait>( &'life0 self, run_id: String, item: <W as Workflow<C>>::WorkItem, ) -> Pin<Box<dyn Future<Output = Result<(), FloxideError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Called when a step is started.

Source

fn on_item_processed<'life0, 'async_trait>( &'life0 self, run_id: String, item: <W as Workflow<C>>::WorkItem, outcome: ItemProcessedOutcome, ) -> Pin<Box<dyn Future<Output = Result<(), FloxideError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Called when a step is completed.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§