Function
encode_data_propose_resp
(msg: &DataProposeResponse, out: &mut Vec<u8>)
Source from the content-addressed store, hash-verified
| 78 | write_frame(RPC_DATA_PROPOSE_REQ, &to_bytes!(msg)?, out) |
| 79 | } |
| 80 | pub(super) fn encode_data_propose_resp(msg: &DataProposeResponse, out: &mut Vec<u8>) -> Result<()> { |
| 81 | write_frame(RPC_DATA_PROPOSE_RESP, &to_bytes!(msg)?, out) |
| 82 | } |
| 83 | |
| 84 | pub(super) fn decode_data_propose_req(payload: &[u8]) -> Result<RaftRpc> { |
| 85 | Ok(RaftRpc::DataProposeRequest(from_bytes!( |
Tested by
no test coverage detected