pub trait DatabaseConnection: DatabaseConnectionRequirements {
// Required methods
fn open<'life0, 'life1, 'async_trait>(
name: &'life0 str,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn open_in_memory<'life0, 'life1, 'async_trait>(
name: &'life0 str,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn close<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait;
fn new_transaction<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<TransactionWrapper<'_>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn wipe<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait { ... }
fn check_buffer_size(size: usize) -> CryptoKeystoreResult<()> { ... }
}
Required Methods§
fn open<'life0, 'life1, 'async_trait>(
name: &'life0 str,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open_in_memory<'life0, 'life1, 'async_trait>(
name: &'life0 str,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn close<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
fn new_transaction<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<TransactionWrapper<'_>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
sourcefn wipe<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn wipe<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
Default implementation of wipe
fn check_buffer_size(size: usize) -> CryptoKeystoreResult<()>
Object Safety§
This trait is not object safe.