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

Function encode_join_req

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

Source from the content-addressed store, hash-verified

108}
109
110pub(super) fn encode_join_req(msg: &JoinRequest, out: &mut Vec<u8>) -> Result<()> {
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}

Callers 1

encodeFunction · 0.85

Calls 1

write_frameFunction · 0.70

Tested by

no test coverage detected