fidl_fuchsia_vsock

Trait ConnectorProxyInterface

Source
pub trait ConnectorProxyInterface: Send + Sync {
    type ConnectResponseFut: Future<Output = Result<ConnectorConnectResult, Error>> + Send;
    type ListenResponseFut: Future<Output = Result<ConnectorListenResult, Error>> + Send;
    type BindResponseFut: Future<Output = Result<ConnectorBindResult, Error>> + Send;

    // Required methods
    fn connect(
        &self,
        remote_cid: u32,
        remote_port: u32,
        con: ConnectionTransport,
    ) -> Self::ConnectResponseFut;
    fn listen(
        &self,
        local_port: u32,
        acceptor: ClientEnd<AcceptorMarker>,
    ) -> Self::ListenResponseFut;
    fn bind(
        &self,
        remote_cid: u32,
        local_port: u32,
        listener: ServerEnd<ListenerMarker>,
    ) -> Self::BindResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn connect( &self, remote_cid: u32, remote_port: u32, con: ConnectionTransport, ) -> Self::ConnectResponseFut

Source

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

Source

fn bind( &self, remote_cid: u32, local_port: u32, listener: ServerEnd<ListenerMarker>, ) -> Self::BindResponseFut

Implementors§