(msg: &PongResponse, out: &mut Vec<u8>)
| 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 | } |
| 122 | pub(super) fn encode_topology_update(msg: &TopologyUpdate, out: &mut Vec<u8>) -> Result<()> { |
| 123 | write_frame(RPC_TOPOLOGY_UPDATE, &to_bytes!(msg)?, out) |
| 124 | } |