pub fn duplex<TSink, TStream>( sink: Pin<Box<TSink>>, stream: Pin<Box<TStream>>, ) -> (Duplex<TSink, TStream>, RpcChannel)where TSink: Sink<String>, TStream: Stream<Item = String>,
Creates a new Duplex, along with a channel to communicate
Duplex