fn from_json_to_wire<'de, T, R, W>(reader: R, writer: W)
where
    T: ToWire + Deserialize<'de>,
    R: Read,
    W: manticore::io::Write,
{
    let mut de = serde_json::Deserializer::from_reader(reader);
    let msg = T::deserialize(&mut de).expect("failed to deserialize JSON");
    msg.to_wire(writer).expect("failed to write request");
}
/// Deserializes a message in JSON format from `reader` and then serializes the
/// message in wire format to `writer`.
Deserializes a message in JSON format from `reader` and then serializes the
message in wire format to `writer`.
Deserializes a message in JSON format from ` reader ` and then serializes the message in wire format to ` writer ` .
fn from_json_to_wire<'de, T, R, W>(reader: R, writer: W)
where
    T: ToWire + Deserialize<'de>,
    R: Read,
    W: manticore::io::Write,
{
    let mut de = serde_json::Deserializer::from_reader(reader);
    let msg = T::deserialize(&mut de).expect("failed to deserialize JSON");
    msg.to_wire(writer).expect("failed to write request");
}
fn from_json_to_wire < ' de , T , R , W > ( reader : R , writer : W ) where T : ToWire + Deserialize < ' de > , R : Read , W : manticore :: io :: Write , { let mut de = serde_json :: Deserializer :: from_reader ( reader ) ; let msg = T :: deserialize ( & mut de ) . expect ( " " ) ; msg . to_wire ( writer ) . expect ( " " ) ; }
Deserializes a message in JSON format from `reader` and then serializes the
message in wire format to `writer`.
Deserializes a message in JSON format from ` reader ` and then serializes the message in wire format to ` writer ` .
reader
R
writer
W
reader
R
writer
W