pub struct InMemoryRunInfoStore { /* private fields */ }Expand description
In-memory implementation of RunInfoStore for testing and local development.
Trait Implementations§
Source§impl Clone for InMemoryRunInfoStore
impl Clone for InMemoryRunInfoStore
Source§fn clone(&self) -> InMemoryRunInfoStore
fn clone(&self) -> InMemoryRunInfoStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for InMemoryRunInfoStore
impl Default for InMemoryRunInfoStore
Source§fn default() -> InMemoryRunInfoStore
fn default() -> InMemoryRunInfoStore
Returns the “default value” for a type. Read more
Source§impl RunInfoStore for InMemoryRunInfoStore
impl RunInfoStore for InMemoryRunInfoStore
Source§fn insert_run<'life0, 'async_trait>(
&'life0 self,
info: RunInfo,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
'life0: 'async_trait,
InMemoryRunInfoStore: 'async_trait,
fn insert_run<'life0, 'async_trait>(
&'life0 self,
info: RunInfo,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
'life0: 'async_trait,
InMemoryRunInfoStore: 'async_trait,
Insert a new workflow run record.
Source§fn update_status<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
status: RunStatus,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryRunInfoStore: 'async_trait,
fn update_status<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
status: RunStatus,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryRunInfoStore: 'async_trait,
Update the status for a workflow run.
Source§fn update_finished_at<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
finished_at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryRunInfoStore: 'async_trait,
fn update_finished_at<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
finished_at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryRunInfoStore: 'async_trait,
Update the finished_at timestamp for a workflow run.
Source§fn get_run<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<RunInfo>, RunInfoError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryRunInfoStore: 'async_trait,
fn get_run<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<RunInfo>, RunInfoError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryRunInfoStore: 'async_trait,
Get the run info for a workflow run.
Source§fn list_runs<'life0, 'async_trait>(
&'life0 self,
filter: Option<RunStatus>,
) -> Pin<Box<dyn Future<Output = Result<Vec<RunInfo>, RunInfoError>> + Send + 'async_trait>>where
'life0: 'async_trait,
InMemoryRunInfoStore: 'async_trait,
fn list_runs<'life0, 'async_trait>(
&'life0 self,
filter: Option<RunStatus>,
) -> Pin<Box<dyn Future<Output = Result<Vec<RunInfo>, RunInfoError>> + Send + 'async_trait>>where
'life0: 'async_trait,
InMemoryRunInfoStore: 'async_trait,
List all workflow runs, optionally filtered by status.
Source§fn update_output<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
output: Value,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryRunInfoStore: 'async_trait,
fn update_output<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
output: Value,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryRunInfoStore: 'async_trait,
Update the output for a workflow run.
Auto Trait Implementations§
impl !RefUnwindSafe for InMemoryRunInfoStore
impl !UnwindSafe for InMemoryRunInfoStore
impl Freeze for InMemoryRunInfoStore
impl Send for InMemoryRunInfoStore
impl Sync for InMemoryRunInfoStore
impl Unpin for InMemoryRunInfoStore
impl UnsafeUnpin for InMemoryRunInfoStore
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