Skip to main content

NodeExecutor

Trait NodeExecutor 

Source
pub trait NodeExecutor: Send + Sync {
    // Required method
    fn execute<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        node: &'life1 Node,
        input: &'life2 WorkflowInput,
    ) -> Pin<Box<dyn Future<Output = Layer2Result<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

节点执行器接口

Required Methods§

Source

fn execute<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, node: &'life1 Node, input: &'life2 WorkflowInput, ) -> Pin<Box<dyn Future<Output = Layer2Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

执行节点

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§