pub struct MemoryRunStore { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl Default for MemoryRunStore
impl Default for MemoryRunStore
Source§impl RunStore for MemoryRunStore
impl RunStore for MemoryRunStore
Source§fn create_run<'life0, 'async_trait>(
&'life0 self,
record: RunRecord,
) -> Pin<Box<dyn Future<Output = RuntimeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_run<'life0, 'async_trait>(
&'life0 self,
record: RunRecord,
) -> Pin<Box<dyn Future<Output = RuntimeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Persists a new run record. Read more
Source§fn get_run<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Option<RunRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_run<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Option<RunRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Loads a run record by its identifier. Read more
Source§fn get_run_state<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Option<RunState>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_run_state<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Option<RunState>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets the event-sourced state of a run by replaying its event log. Read more
Source§fn update_run_status<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
status: RunStatus,
) -> Pin<Box<dyn Future<Output = RuntimeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_run_status<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
status: RunStatus,
) -> Pin<Box<dyn Future<Output = RuntimeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Updates the status of an existing run. Read more
Source§fn append_event<'life0, 'async_trait>(
&'life0 self,
record: RunEventRecord,
) -> Pin<Box<dyn Future<Output = RuntimeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn append_event<'life0, 'async_trait>(
&'life0 self,
record: RunEventRecord,
) -> Pin<Box<dyn Future<Output = RuntimeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Appends an event to a run’s event log. Read more
Source§fn list_events<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Vec<RunEventRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_events<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Vec<RunEventRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the full event log for a run, ordered by sequence number. Read more
Source§fn list_runs<'life0, 'async_trait>(
&'life0 self,
session_id: Uuid,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Vec<RunRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_runs<'life0, 'async_trait>(
&'life0 self,
session_id: Uuid,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Vec<RunRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Lists all runs belonging to a session. Read more
Source§fn list_runs_filtered<'life0, 'async_trait>(
&'life0 self,
session_id: Option<Uuid>,
status: Option<RunStatus>,
limit: usize,
offset: usize,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Vec<RunRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_runs_filtered<'life0, 'async_trait>(
&'life0 self,
session_id: Option<Uuid>,
status: Option<RunStatus>,
limit: usize,
offset: usize,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Vec<RunRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Lists runs with optional filters and pagination. Read more
Source§fn delete_run<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
) -> Pin<Box<dyn Future<Output = RuntimeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_run<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
) -> Pin<Box<dyn Future<Output = RuntimeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Deletes a run and all its associated events. Read more
Source§fn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RuntimeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RuntimeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Performs a health check against the underlying storage backend. Read more
Auto Trait Implementations§
impl !Freeze for MemoryRunStore
impl !RefUnwindSafe for MemoryRunStore
impl Send for MemoryRunStore
impl Sync for MemoryRunStore
impl Unpin for MemoryRunStore
impl UnsafeUnpin for MemoryRunStore
impl UnwindSafe for MemoryRunStore
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