pub trait StepCallbacks<C, W>: Send + Sync{
// 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§
Sourcefn 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_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.
Sourcefn 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,
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".