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§
sourcefn 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_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
sourcefn 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 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
Implementors§
impl AppStoreService for AppStoreBuiltin
impl AppStoreService for MockAppStoreService
Interface for the AppStore service