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

Class VShardEnvelope

nodedb-cluster/src/wire.rs:16–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14/// Envelope wrapping all vShard wire messages.
15#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
16pub struct VShardEnvelope {
17 /// Protocol version for forward compatibility.
18 pub version: u16,
19 /// Message type discriminant.
20 pub msg_type: VShardMessageType,
21 /// Source node ID.
22 pub source_node: u64,
23 /// Target node ID.
24 pub target_node: u64,
25 /// vShard being referenced.
26 pub vshard_id: u32,
27 /// Opaque payload (type-dependent).
28 pub payload: Vec<u8>,
29}
30
31/// Message types for vShard wire protocol.
32#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]

Callers 5

handle_rpcMethod · 0.85
decode_vshard_envelopeFunction · 0.85
call_onceMethod · 0.85
send_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected