Function jsonrpc_client_transports::transports::duplex::duplex
source · [−]pub fn duplex<TSink, TStream>(
sink: TSink,
stream: TStream
) -> (Duplex<TSink, TStream>, RpcChannel)
Expand description
Creates a new Duplex
, along with a channel to communicate