fidl_fuchsia_vsockTrait 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;
}