[][src]Function jsonrpc_client_transports::transports::duplex::duplex

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