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

Function encode_ping

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

Source from the content-addressed store, hash-verified

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

Callers 1

encodeFunction · 0.85

Calls 1

write_frameFunction · 0.70

Tested by

no test coverage detected