pub fn write_frame( rpc_type: u8, payload: &[u8], out: &mut Vec<u8>, ) -> Result<()>
Write a framed header + payload into out.
out
rpc_type is the discriminant byte; payload is the already-serialized body.
rpc_type
payload