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§
Required Methods§
Sourcefn 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,
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.