[][src]Function tarpc_json_transport::new

pub fn new<Item, SinkItem>(
    io: TcpStream
) -> Transport<TcpStream, Item, SinkItem> where
    Item: for<'de> Deserialize<'de>,
    SinkItem: Serialize

Returns a new JSON transport that reads from and writes to io.