Skip to main content

ContextStore

Trait ContextStore 

Source
pub trait ContextStore<C>: Send + Sync
where C: Context + Merge + Default,
{ // 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§

Source

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,

Source

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,

Source

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".

Implementors§