Function remoc::rch::base::connect

source ·
pub async fn connect<Tx, Rx, Codec>(
    client: &Client,
    listener: &mut Listener
) -> Result<(Sender<Tx, Codec>, Receiver<Rx, Codec>), ConnectError>
where Tx: RemoteSend, Rx: RemoteSend, Codec: Codec,
Available on crate feature rch only.
Expand description

Create a remote channel over an existing chmux connection.

This will send a connect request over the client and accept one connection request from the listener.

Other connections may coexist on the chmux connection.