Skip to main content

SshRunner

Trait SshRunner 

Source
pub trait SshRunner: Send + Sync {
    // Required method
    fn exchange(
        &self,
        invocation: &SshInvocation,
        request: &[u8],
        cancellation: &CancellationToken,
    ) -> Result<Vec<u8>, SshTransportError>;
}
Expand description

Runtime-neutral boundary around a complete request/response exchange.

Required Methods§

Source

fn exchange( &self, invocation: &SshInvocation, request: &[u8], cancellation: &CancellationToken, ) -> Result<Vec<u8>, SshTransportError>

Send one bounded JSON request and return one bounded JSON response.

§Errors

Returns a stable transport error without exposing remote stderr.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§