SourcePlugin

Trait SourcePlugin 

Source
pub trait SourcePlugin:
    Send
    + Sync
    + 'static {
    // Required methods
    fn download_app<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DownloadAppRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DownloadAppResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn download_all_apps<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DownloadAppsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DownloadAppsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_app_store_metadata<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetAppStoreMetadataRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetAppStoreMetadataResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with SourcePluginServer.

Required Methods§

Source

fn download_app<'life0, 'async_trait>( &'life0 self, request: Request<DownloadAppRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DownloadAppResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn download_all_apps<'life0, 'async_trait>( &'life0 self, request: Request<DownloadAppsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DownloadAppsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_app_store_metadata<'life0, 'async_trait>( &'life0 self, request: Request<GetAppStoreMetadataRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetAppStoreMetadataResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§