pub struct LocalStateAdapter { /* private fields */ }Expand description
Local state adapter (stores state in local files)
Implementations§
Trait Implementations§
Source§impl Default for LocalStateAdapter
impl Default for LocalStateAdapter
Source§impl StateAdapter for LocalStateAdapter
impl StateAdapter for LocalStateAdapter
Source§fn save_workflow_run<'life0, 'life1, 'async_trait>(
&'life0 mut self,
workflow_run: &'life1 WorkflowRun,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_workflow_run<'life0, 'life1, 'async_trait>(
&'life0 mut self,
workflow_run: &'life1 WorkflowRun,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Save a workflow run
Source§fn apply_workflow_run_diff<'life0, 'life1, 'async_trait>(
&'life0 mut self,
diff: &'life1 WorkflowRunDiff,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn apply_workflow_run_diff<'life0, 'life1, 'async_trait>(
&'life0 mut self,
diff: &'life1 WorkflowRunDiff,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Apply a diff to a workflow run
Source§fn get_workflow_run<'life0, 'async_trait>(
&'life0 self,
workflow_run_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<WorkflowRun>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_workflow_run<'life0, 'async_trait>(
&'life0 self,
workflow_run_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<WorkflowRun>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a workflow run
Source§fn list_workflow_runs<'life0, 'async_trait>(
&'life0 self,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<WorkflowRun>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_workflow_runs<'life0, 'async_trait>(
&'life0 self,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<WorkflowRun>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List workflow runs
Source§fn save_task<'life0, 'life1, 'async_trait>(
&'life0 mut self,
task: &'life1 Task,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_task<'life0, 'life1, 'async_trait>(
&'life0 mut self,
task: &'life1 Task,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Save a task
Source§fn get_task<'life0, 'async_trait>(
&'life0 self,
task_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Task>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_task<'life0, 'async_trait>(
&'life0 self,
task_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Task>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a task
Source§fn get_tasks<'life0, 'async_trait>(
&'life0 self,
workflow_run_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<Task>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_tasks<'life0, 'async_trait>(
&'life0 self,
workflow_run_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<Task>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get all tasks for a workflow run
Source§fn update_state<'life0, 'async_trait>(
&'life0 mut self,
workflow_run_id: Uuid,
state: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_state<'life0, 'async_trait>(
&'life0 mut self,
workflow_run_id: Uuid,
state: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update workflow state
Source§fn apply_task_diff<'life0, 'life1, 'async_trait>(
&'life0 mut self,
diff: &'life1 TaskDiff,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn apply_task_diff<'life0, 'life1, 'async_trait>(
&'life0 mut self,
diff: &'life1 TaskDiff,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Apply a diff to a task
Auto Trait Implementations§
impl Freeze for LocalStateAdapter
impl RefUnwindSafe for LocalStateAdapter
impl Send for LocalStateAdapter
impl Sync for LocalStateAdapter
impl Unpin for LocalStateAdapter
impl UnsafeUnpin for LocalStateAdapter
impl UnwindSafe for LocalStateAdapter
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