pub trait ActionCallback<T: Flow>: Send + 'static {
// Required method
fn handle_activity<'life0, 'async_trait>(
&'life0 mut self,
envelope: ActionEnvelope<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
The callback that called on flow’s incoming actions.
Required Methods§
Sourcefn handle_activity<'life0, 'async_trait>(
&'life0 mut self,
envelope: ActionEnvelope<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_activity<'life0, 'async_trait>(
&'life0 mut self,
envelope: ActionEnvelope<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
A method to handle an action.