pub struct InMemoryWorkflowStepExecutionStore { /* private fields */ }Expand description
In-memory WorkflowStepExecutionStore for tests and the standalone
client-side runner.
Implementations§
Trait Implementations§
Source§impl WorkflowStepExecutionStore for InMemoryWorkflowStepExecutionStore
impl WorkflowStepExecutionStore for InMemoryWorkflowStepExecutionStore
Source§fn insert<'life0, 'async_trait>(
&'life0 self,
execution: WorkflowStepExecution,
) -> Pin<Box<dyn Future<Output = Result<WorkflowStepExecution>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert<'life0, 'async_trait>(
&'life0 self,
execution: WorkflowStepExecution,
) -> Pin<Box<dyn Future<Output = Result<WorkflowStepExecution>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Insert a step execution row. Returns the inserted record.
Source§fn update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
run_task_id: &'life1 str,
step_id: &'life2 str,
update: WorkflowStepExecutionUpdate,
) -> Pin<Box<dyn Future<Output = Result<WorkflowStepExecution>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
run_task_id: &'life1 str,
step_id: &'life2 str,
update: WorkflowStepExecutionUpdate,
) -> Pin<Box<dyn Future<Output = Result<WorkflowStepExecution>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Apply an update to the step identified by
(run_task_id, step_id). Returns the updated record.Source§fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
run_task_id: &'life1 str,
step_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<WorkflowStepExecution>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
run_task_id: &'life1 str,
step_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<WorkflowStepExecution>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Fetch one step execution by
(run_task_id, step_id).Source§fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
run_task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<WorkflowStepExecution>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
run_task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<WorkflowStepExecution>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all step executions for a run, in insertion order.
Auto Trait Implementations§
impl !Freeze for InMemoryWorkflowStepExecutionStore
impl RefUnwindSafe for InMemoryWorkflowStepExecutionStore
impl Send for InMemoryWorkflowStepExecutionStore
impl Sync for InMemoryWorkflowStepExecutionStore
impl Unpin for InMemoryWorkflowStepExecutionStore
impl UnsafeUnpin for InMemoryWorkflowStepExecutionStore
impl UnwindSafe for InMemoryWorkflowStepExecutionStore
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