Trait PluginService

Source
pub trait PluginService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn list_plugins<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListPluginsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListPluginsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_plugin<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreatePluginRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CreatePluginResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_plugin<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetPluginRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetPluginResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_plugin<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeletePluginRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DeletePluginResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_plugin_by_id<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetPluginByIdRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetPluginByIdResponse>, 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 PluginServiceServer.

Required Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§