(msg: &JoinRequest, out: &mut Vec<u8>)
| 108 | } |
| 109 | |
| 110 | pub(super) fn encode_join_req(msg: &JoinRequest, out: &mut Vec<u8>) -> Result<()> { |
| 111 | write_frame(RPC_JOIN_REQ, &to_bytes!(msg)?, out) |
| 112 | } |
| 113 | pub(super) fn encode_join_resp(msg: &JoinResponse, out: &mut Vec<u8>) -> Result<()> { |
| 114 | write_frame(RPC_JOIN_RESP, &to_bytes!(msg)?, out) |
| 115 | } |