Trait linera_core::test_utils::StorageBuilder

source ·
pub trait StorageBuilder {
    type Storage: Storage + Clone + Send + Sync + 'static;

    // Required methods
    fn build<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Storage, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn clock(&self) -> &TestClock;
}

Required Associated Types§

source

type Storage: Storage + Clone + Send + Sync + 'static

Required Methods§

source

fn build<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Self::Storage, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn clock(&self) -> &TestClock

Implementors§