fidl_fuchsia_netemul_guest

Trait GuestProxyInterface

Source
pub trait GuestProxyInterface: Send + Sync {
    type PutFileResponseFut: Future<Output = Result<i32, Error>> + Send;
    type GetFileResponseFut: Future<Output = Result<i32, 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 shutdown(&self) -> Self::ShutdownResponseFut;
}

Required Associated Types§

Source

type PutFileResponseFut: Future<Output = Result<i32, Error>> + Send

Source

type GetFileResponseFut: Future<Output = Result<i32, Error>> + Send

Source

type ShutdownResponseFut: Future<Output = Result<(), Error>> + Send

Required Methods§

Source

fn put_file( &self, local_file: ClientEnd<FileMarker>, remote_path: &str, ) -> Self::PutFileResponseFut

Source

fn get_file( &self, remote_path: &str, local_file: ClientEnd<FileMarker>, ) -> Self::GetFileResponseFut

Source

fn execute_command( &self, command: &str, env: &[EnvironmentVariable], stdin: Option<Socket>, stdout: Option<Socket>, stderr: Option<Socket>, command_listener: ServerEnd<CommandListenerMarker>, ) -> Result<(), Error>

Source

fn shutdown(&self) -> Self::ShutdownResponseFut

Implementors§

Source§

impl GuestProxyInterface for GuestProxy

Source§

type PutFileResponseFut = QueryResponseFut<i32>

Source§

type GetFileResponseFut = QueryResponseFut<i32>

Source§

type ShutdownResponseFut = QueryResponseFut<()>