pub trait ShellExecutor:
Send
+ Sync
+ 'static {
// Required method
fn exec_shell<'life0, 'async_trait>(
&'life0 self,
request: Request<ShellRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ShellResponse>, 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 ShellExecutorServer.
Required Methods§
Sourcefn exec_shell<'life0, 'async_trait>(
&'life0 self,
request: Request<ShellRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ShellResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn exec_shell<'life0, 'async_trait>(
&'life0 self,
request: Request<ShellRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ShellResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Runs a shell command and returns exit code, stdout, and stderr.