pub trait TaskRunStore: Send + Sync {
// Provided methods
fn associate_task_run<'life0, 'async_trait>(
&'life0 self,
task_id: Uuid,
run_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn list_task_runs<'life0, 'async_trait>(
&'life0 self,
task_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<StoredRun>, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Associates a task occurrence with the run submitted for it.
Task definitions currently live in TOML files, so task IDs deliberately have no foreign key: history survives deletion of a task definition.
Provided Methods§
fn associate_task_run<'life0, 'async_trait>(
&'life0 self,
task_id: Uuid,
run_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_task_runs<'life0, 'async_trait>(
&'life0 self,
task_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<StoredRun>, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".