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

Method with_wire_version

nodedb-cluster/src/topology.rs:152–155  ·  view source on GitHub ↗

Override the wire version on an otherwise-fresh NodeInfo. Builder-style so call sites read as `NodeInfo::new(id, addr, state).with_wire_version(remote_v)`.

(mut self, wire_version: u16)

Source from the content-addressed store, hash-verified

150 /// Builder-style so call sites read as
151 /// `NodeInfo::new(id, addr, state).with_wire_version(remote_v)`.
152 pub fn with_wire_version(mut self, wire_version: u16) -> Self {
153 self.wire_version = wire_version;
154 self
155 }
156
157 /// Set the SPIFFE URI SAN for this node. Builder-style.
158 pub fn with_spiffe_id(mut self, spiffe_id: Option<String>) -> Self {

Callers 4

handle_topology_updateFunction · 0.80
handle_join_requestFunction · 0.80
apply_join_responseFunction · 0.80
nodeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected