pub trait Activity: Send + Sync {
// Required methods
fn execute<'life0, 'async_trait>(
&'life0 self,
inputs: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>, ActivityError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn name(&self) -> &str;
// Provided methods
fn timeout(&self) -> Option<Duration> { ... }
fn retry_policy(&self) -> Option<RetryPolicy> { ... }
}
Expand description
Activity実行インターフェース