core_crypto_keystore::connection

Trait DatabaseConnection

source
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§

source

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,

source

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,

source

fn close<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,

source

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§

source

fn wipe<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Default implementation of wipe

source

fn check_buffer_size(size: usize) -> CryptoKeystoreResult<()>

Object Safety§

This trait is not object safe.

Implementors§