Trait sshx_core::proto::sshx_service_server::SshxService

source ·
pub trait SshxService:
    Send
    + Sync
    + 'static {
    type ChannelStream: Stream<Item = Result<ServerUpdate, Status>> + Send + 'static;

    // Required methods
    fn open<'life0, 'async_trait>(
        &'life0 self,
        request: Request<OpenRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<OpenResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn channel<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<ClientUpdate>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ChannelStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn close<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CloseRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CloseResponse>, 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 SshxServiceServer.

Required Associated Types§

source

type ChannelStream: Stream<Item = Result<ServerUpdate, Status>> + Send + 'static

Server streaming response type for the Channel method.

Required Methods§

source

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

Create a new SSH session for a given computer.

source

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

Stream real-time commands and terminal outputs to the session.

source

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

Gracefully shut down an existing SSH session.

Implementors§