(msg: &JoinResponse, out: &mut Vec<u8>)
| 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 | } |
| 116 | pub(super) fn encode_ping(msg: &PingRequest, out: &mut Vec<u8>) -> Result<()> { |
| 117 | write_frame(RPC_PING, &to_bytes!(msg)?, out) |
| 118 | } |