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

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>, 
Expand description

Creates a new Duplex, along with a channel to communicate