pub trait ComponentService:
Send
+ Sync
+ 'static {
type DownloadComponentStream: Stream<Item = Result<DownloadComponentResponse, Status>> + Send + 'static;
Show 13 methods
// Required methods
fn get_components<'life0, 'async_trait>(
&'life0 self,
request: Request<GetComponentsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetComponentsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_component<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<CreateComponentRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateComponentResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn download_component<'life0, 'async_trait>(
&'life0 self,
request: Request<DownloadComponentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DownloadComponentStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_component_metadata_all_versions<'life0, 'async_trait>(
&'life0 self,
request: Request<GetComponentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetComponentMetadataAllVersionsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_latest_component_metadata<'life0, 'async_trait>(
&'life0 self,
request: Request<GetLatestComponentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetComponentMetadataResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_component<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<UpdateComponentRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpdateComponentResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_component_metadata<'life0, 'async_trait>(
&'life0 self,
request: Request<GetVersionedComponentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetComponentMetadataResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_component_constraints<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateComponentConstraintsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateComponentConstraintsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_component_constraint<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteComponentConstraintsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteComponentConstraintsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_installed_plugins<'life0, 'async_trait>(
&'life0 self,
request: Request<GetInstalledPluginsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetInstalledPluginsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn install_plugin<'life0, 'async_trait>(
&'life0 self,
request: Request<InstallPluginRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InstallPluginResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_installed_plugin<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateInstalledPluginRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpdateInstalledPluginResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn uninstall_plugin<'life0, 'async_trait>(
&'life0 self,
request: Request<UninstallPluginRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UninstallPluginResponse>, 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 ComponentServiceServer.
Required Associated Types§
Sourcetype DownloadComponentStream: Stream<Item = Result<DownloadComponentResponse, Status>> + Send + 'static
type DownloadComponentStream: Stream<Item = Result<DownloadComponentResponse, Status>> + Send + 'static
Server streaming response type for the DownloadComponent method.