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§
sourcetype ChannelStream: Stream<Item = Result<ServerUpdate, Status>> + Send + 'static
type ChannelStream: Stream<Item = Result<ServerUpdate, Status>> + Send + 'static
Server streaming response type for the Channel method.
Required Methods§
sourcefn 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 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.
sourcefn 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 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.