Trait ContextStore
Source pub trait ContextStore<C: Context + Merge + Default>: Send + Sync {
// Required methods
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<C>, ContextStoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn set<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
ctx: C,
) -> Pin<Box<dyn Future<Output = Result<(), ContextStoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn merge<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
ctx: C,
) -> Pin<Box<dyn Future<Output = Result<(), ContextStoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}