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

Function encode_join_resp

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

Source from the content-addressed store, hash-verified

111 write_frame(RPC_JOIN_REQ, &to_bytes!(msg)?, out)
112}
113pub(super) fn encode_join_resp(msg: &JoinResponse, out: &mut Vec<u8>) -> Result<()> {
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}

Callers 1

encodeFunction · 0.85

Calls 1

write_frameFunction · 0.70

Tested by

no test coverage detected