Skip to main content

MetadataKvBackendCreator

Trait MetadataKvBackendCreator 

Source
pub trait MetadataKvBackendCreator: Send + Sync {
    // Required method
    fn create<'life0, 'life1, 'async_trait>(
        &'life0 self,
        metadata_dir: String,
        opts: &'life1 StandaloneOptions,
    ) -> Pin<Box<dyn Future<Output = Result<KvBackendRef>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Customizes how standalone opens its metadata KV backend.

The default implementation preserves the built-in raft-engine path. Other callers can provide a custom implementation without changing standalone configuration types.

Required Methods§

Source

fn create<'life0, 'life1, 'async_trait>( &'life0 self, metadata_dir: String, opts: &'life1 StandaloneOptions, ) -> Pin<Box<dyn Future<Output = Result<KvBackendRef>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§