Function jsonrpc_core_client::transports::duplex[][src]

pub fn duplex<TSink, TStream>(
    sink: Pin<Box<TSink, Global>>,
    stream: Pin<Box<TStream, Global>>
) -> (Duplex<TSink, TStream>, RpcChannel) where
    TSink: Sink<String>,
    TStream: Stream<Item = String>, 
Expand description

Creates a new Duplex, along with a channel to communicate