MCPcopy Create free account
hub / github.com/PacktPublishing/Rust-for-Blockchain-Application-Development / get_addr

Method get_addr

chapter 4/node.rs:14–16  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

12 }
13
14 pub fn get_addr(&self) -> String {
15 self.addr.clone()
16 }
17
18 pub fn parse_socket_addr(&self) -> SocketAddr {
19 self.addr.parse().unwrap()

Callers 4

serveFunction · 0.45
add_nodeMethod · 0.45
evict_nodeMethod · 0.45
node_is_knownMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected