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

Function encode_topology_update

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

Source from the content-addressed store, hash-verified

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}
125pub(super) fn encode_topology_ack(msg: &TopologyAck, out: &mut Vec<u8>) -> Result<()> {
126 write_frame(RPC_TOPOLOGY_ACK, &to_bytes!(msg)?, out)
127}

Callers 1

encodeFunction · 0.85

Calls 1

write_frameFunction · 0.70

Tested by

no test coverage detected