GuardianDBKVStoreProvider

Trait GuardianDBKVStoreProvider 

Source
pub trait GuardianDBKVStoreProvider: Send + Sync {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn key_value<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        address: &'life1 str,
        options: &'life2 mut CreateDBOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn KeyValueStore<Error = GuardianError>>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Expõe um método para criar ou abrir uma KeyValueStore.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Define um tipo de erro associado para este trait.

Required Methods§

Source

fn key_value<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, address: &'life1 str, options: &'life2 mut CreateDBOptions, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn KeyValueStore<Error = GuardianError>>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Cria ou abre uma KeyValueStore.

Implementors§