Skip to main content

RemoteCommandProvider

Trait RemoteCommandProvider 

Source
pub trait RemoteCommandProvider:
    Send
    + Sync
    + 'static {
    type ExecuteCommandStream: Stream<Item = Result<ExecuteCommandResponse, Status>> + Send + 'static;

    // Required methods
    fn list_commands<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListCommandsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListCommandsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn execute_command<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ExecuteCommandRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ExecuteCommandStream>, 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 RemoteCommandProviderServer.

Required Associated Types§

Source

type ExecuteCommandStream: Stream<Item = Result<ExecuteCommandResponse, Status>> + Send + 'static

Server streaming response type for the ExecuteCommand method.

Required Methods§

Source

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

Source

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

Implementors§