fidl_fuchsia_virtualization

Trait HostVsockEndpointProxyInterface

Source
pub trait HostVsockEndpointProxyInterface: Send + Sync {
    type ListenResponseFut: Future<Output = Result<HostVsockEndpointListenResult, Error>> + Send;
    type ConnectResponseFut: Future<Output = Result<HostVsockEndpointConnectResult, Error>> + Send;

    // Required methods
    fn listen(
        &self,
        port: u32,
        acceptor: ClientEnd<HostVsockAcceptorMarker>,
    ) -> Self::ListenResponseFut;
    fn connect(&self, guest_port: u32) -> Self::ConnectResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn listen( &self, port: u32, acceptor: ClientEnd<HostVsockAcceptorMarker>, ) -> Self::ListenResponseFut

Source

fn connect(&self, guest_port: u32) -> Self::ConnectResponseFut

Implementors§