pub struct DefaultTaskExecutor;Expand description
默认任务执行器(用于测试)
Trait Implementations§
Source§impl TaskExecutor for DefaultTaskExecutor
impl TaskExecutor for DefaultTaskExecutor
Source§fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
task_name: &'life1 str,
_params: &'life2 HashMap<String, Value>,
_context: &'life3 WorkflowContext,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
task_name: &'life1 str,
_params: &'life2 HashMap<String, Value>,
_context: &'life3 WorkflowContext,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
执行任务,返回输出数据
Auto Trait Implementations§
impl Freeze for DefaultTaskExecutor
impl RefUnwindSafe for DefaultTaskExecutor
impl Send for DefaultTaskExecutor
impl Sync for DefaultTaskExecutor
impl Unpin for DefaultTaskExecutor
impl UnsafeUnpin for DefaultTaskExecutor
impl UnwindSafe for DefaultTaskExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more