pub trait ContextStore<C>: 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 'life0: 'async_trait,
'life1: 'async_trait,
Self: '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 'life0: 'async_trait,
'life1: 'async_trait,
Self: '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 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}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
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".