pub struct WorkflowEngine { /* private fields */ }
Expand description
In-memory workflow engine implementation
Implementations§
Source§impl WorkflowEngine
impl WorkflowEngine
pub fn new() -> Self
pub fn builder() -> WorkflowEngineBuilder
Trait Implementations§
Source§impl Debug for WorkflowEngine
impl Debug for WorkflowEngine
Source§impl Default for WorkflowEngine
impl Default for WorkflowEngine
Source§impl WorkflowEngineInterface for WorkflowEngine
impl WorkflowEngineInterface for WorkflowEngine
fn start_workflow<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow: &'life1 WorkflowIR,
_context: Value,
) -> Pin<Box<dyn Future<Output = Result<WorkflowExecutionId, WorkflowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_execution<'life0, 'life1, 'async_trait>(
&'life0 self,
execution_id: &'life1 WorkflowExecutionId,
) -> Pin<Box<dyn Future<Output = Result<Option<WorkflowExecution>, WorkflowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_executions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<WorkflowExecution>, WorkflowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cancel_execution<'life0, 'life1, 'async_trait>(
&'life0 self,
execution_id: &'life1 WorkflowExecutionId,
) -> Pin<Box<dyn Future<Output = Result<(), WorkflowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for WorkflowEngine
impl !RefUnwindSafe for WorkflowEngine
impl Send for WorkflowEngine
impl Sync for WorkflowEngine
impl Unpin for WorkflowEngine
impl !UnwindSafe for WorkflowEngine
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