pub struct WorkflowEngine { /* private fields */ }Expand description
In-memory workflow engine implementation
Implementations§
Source§impl WorkflowEngine
impl WorkflowEngine
pub fn new() -> WorkflowEngine
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§fn default() -> WorkflowEngine
fn default() -> WorkflowEngine
Returns the “default value” for a type. Read more
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
'life0: 'async_trait,
'life1: 'async_trait,
WorkflowEngine: '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
'life0: 'async_trait,
'life1: 'async_trait,
WorkflowEngine: 'async_trait,
fn list_executions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<WorkflowExecution>, WorkflowError>> + Send + 'async_trait>>where
'life0: 'async_trait,
WorkflowEngine: '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
'life0: 'async_trait,
'life1: 'async_trait,
WorkflowEngine: 'async_trait,
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, KotobaError>> + 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>, KotobaError>> + 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>, KotobaError>> + 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<(), KotobaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for WorkflowEngine
impl !UnwindSafe for WorkflowEngine
impl Freeze for WorkflowEngine
impl Send for WorkflowEngine
impl Sync for WorkflowEngine
impl Unpin for WorkflowEngine
impl UnsafeUnpin 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