pub fn encode_response(response: &Response) -> Result<Vec<u8>, ProtocolError>
Encode a remote-client response into Flatbuffers bytes.