pub trait InteractiveGuestProxyInterface: Send + Sync {
type PutFileResponseFut: Future<Output = Result<i32, Error>> + Send;
type GetFileResponseFut: Future<Output = Result<i32, Error>> + Send;
type StartResponseFut: Future<Output = Result<(), Error>> + Send;
type ShutdownResponseFut: Future<Output = Result<(), Error>> + Send;
// Required methods
fn put_file(
&self,
local_file: ClientEnd<FileMarker>,
remote_path: &str,
) -> Self::PutFileResponseFut;
fn get_file(
&self,
remote_path: &str,
local_file: ClientEnd<FileMarker>,
) -> Self::GetFileResponseFut;
fn execute_command(
&self,
command: &str,
env: &[EnvironmentVariable],
stdin: Option<Socket>,
stdout: Option<Socket>,
stderr: Option<Socket>,
command_listener: ServerEnd<CommandListenerMarker>,
) -> Result<(), Error>;
fn start(
&self,
guest_type: GuestType,
name: &str,
guest_config: GuestConfig,
) -> Self::StartResponseFut;
fn shutdown(&self) -> Self::ShutdownResponseFut;
}Required Associated Types§
type PutFileResponseFut: Future<Output = Result<i32, Error>> + Send
type GetFileResponseFut: Future<Output = Result<i32, Error>> + Send
type StartResponseFut: Future<Output = Result<(), Error>> + Send
type ShutdownResponseFut: Future<Output = Result<(), Error>> + Send
Required Methods§
fn put_file( &self, local_file: ClientEnd<FileMarker>, remote_path: &str, ) -> Self::PutFileResponseFut
fn get_file( &self, remote_path: &str, local_file: ClientEnd<FileMarker>, ) -> Self::GetFileResponseFut
fn execute_command( &self, command: &str, env: &[EnvironmentVariable], stdin: Option<Socket>, stdout: Option<Socket>, stderr: Option<Socket>, command_listener: ServerEnd<CommandListenerMarker>, ) -> Result<(), Error>
fn start( &self, guest_type: GuestType, name: &str, guest_config: GuestConfig, ) -> Self::StartResponseFut
fn shutdown(&self) -> Self::ShutdownResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".