Skip to main content

StoreReadNext

Trait StoreReadNext 

Source
pub trait StoreReadNext: Send + Sync {
    // Required method
    fn read<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        scope: &'life1 Scope,
        key: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, StateError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

The next layer in a store-read middleware chain.

Required Methods§

Source

fn read<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, scope: &'life1 Scope, key: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, StateError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Forward the read to the next layer.

Implementors§