MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / encode_pong

Function encode_pong

nodedb-cluster/src/rpc_codec/cluster_mgmt.rs:119–121  ·  view source on GitHub ↗
(msg: &PongResponse, out: &mut Vec<u8>)

Source from the content-addressed store, hash-verified

117 write_frame(RPC_PING, &to_bytes!(msg)?, out)
118}
119pub(super) fn encode_pong(msg: &PongResponse, out: &mut Vec<u8>) -> Result<()> {
120 write_frame(RPC_PONG, &to_bytes!(msg)?, out)
121}
122pub(super) fn encode_topology_update(msg: &TopologyUpdate, out: &mut Vec<u8>) -> Result<()> {
123 write_frame(RPC_TOPOLOGY_UPDATE, &to_bytes!(msg)?, out)
124}

Callers 1

encodeFunction · 0.85

Calls 1

write_frameFunction · 0.70

Tested by

no test coverage detected