Trait mav_sdk::grpc::shell::shell_service_server::ShellService[][src]

pub trait ShellService: Send + Sync + 'static {
    type SubscribeReceiveStream: Stream<Item = Result<ReceiveResponse, Status>> + Send + Sync + 'static;
    fn send<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SendRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SendResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn subscribe_receive<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SubscribeReceiveRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeReceiveStream>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

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

Associated Types

Server streaming response type for the SubscribeReceive method.

Required methods

Send a command line.

Receive feedback from a sent command line.

This subscription needs to be made before a command line is sent, otherwise, no response will be sent.

Implementors