Skip to main content

NodeStoreInitializer

Trait NodeStoreInitializer 

Source
pub trait NodeStoreInitializer: Send + Sync {
    // Required method
    fn initialize_async<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

One-time initializer contract for a storage backend.

This is typically used for schema creation and migration/backfill hooks.

Required Methods§

Source

fn initialize_async<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§