pub fn generate_rust_code_streams<P1: Read, P2: Write>(
    protocol: P1,
    target: &mut P2,
    side: Side
)
Expand description

Generate the code for a protocol from/to IO streams using the rust implementation

Like generate_code, but takes IO Streams directly rather than filenames

Args:

  • protocol: an object Read-able containing the XML protocol file
  • target: a Write-able object to which the generated code will be outputted to
  • side: the side (client or server) to generate code for.