(msg: &PingRequest, out: &mut Vec<u8>)
| 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 | } |
| 119 | pub(super) fn encode_pong(msg: &PongResponse, out: &mut Vec<u8>) -> Result<()> { |
| 120 | write_frame(RPC_PONG, &to_bytes!(msg)?, out) |
| 121 | } |