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

Function encode_install_snapshot_req

nodedb-cluster/src/rpc_codec/raft_msgs.rs:53–58  ·  view source on GitHub ↗
(
    msg: &InstallSnapshotRequest,
    out: &mut Vec<u8>,
)

Source from the content-addressed store, hash-verified

51 write_frame(RPC_REQUEST_VOTE_RESP, &rkyv_to_bytes!(msg)?, out)
52}
53pub(super) fn encode_install_snapshot_req(
54 msg: &InstallSnapshotRequest,
55 out: &mut Vec<u8>,
56) -> Result<()> {
57 write_frame(RPC_INSTALL_SNAPSHOT_REQ, &rkyv_to_bytes!(msg)?, out)
58}
59pub(super) fn encode_install_snapshot_resp(
60 msg: &InstallSnapshotResponse,
61 out: &mut Vec<u8>,

Callers 1

encodeFunction · 0.85

Calls 1

write_frameFunction · 0.70

Tested by

no test coverage detected