pub trait AppStoreService: Send + Sync {
    // Required methods
    fn get_dna_bundle<'life0, 'async_trait>(
        &'life0 self,
        dna_hash: DnaHash
    ) -> Pin<Box<dyn Future<Output = AppStoreServiceResult<Option<DnaBundle>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_app_bundle<'life0, 'async_trait>(
        &'life0 self,
        app_hash: AppHash
    ) -> Pin<Box<dyn Future<Output = AppStoreServiceResult<Option<AppBundle>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn cell_ids<'a>(&'a self) -> HashSet<&'a CellId>;
}
Expand description

Interface for the AppStore service

Required Methods§

source

fn get_dna_bundle<'life0, 'async_trait>( &'life0 self, dna_hash: DnaHash ) -> Pin<Box<dyn Future<Output = AppStoreServiceResult<Option<DnaBundle>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetch a DNA bundle from the store

source

fn get_app_bundle<'life0, 'async_trait>( &'life0 self, app_hash: AppHash ) -> Pin<Box<dyn Future<Output = AppStoreServiceResult<Option<AppBundle>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetch an app bundle from the store

source

fn cell_ids<'a>(&'a self) -> HashSet<&'a CellId>

The CellIds in use by this service, which need to be protected

Implementors§

source§

impl AppStoreService for AppStoreBuiltin

source§

impl AppStoreService for MockAppStoreService

Interface for the AppStore service