Skip to main content

Storage

Trait Storage 

Source
pub trait Storage: Send + Sync {
    // Required method
    fn store<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
        data: &'life2 str,
        input: &'life3 MemoryInput,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Trait for storing processed memory data.

Required Methods§

Source

fn store<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, id: &'life1 str, data: &'life2 str, input: &'life3 MemoryInput, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§