Activity

Trait Activity 

Source
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実行インターフェース

Required Methods§

Source

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,

Source

fn name(&self) -> &str

Provided Methods§

Implementors§