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

Method get_nodes

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

Source from the content-addressed store, hash-verified

54 }
55
56 pub fn get_nodes(&self) -> Vec<Node> {
57 self.inner.read().unwrap().to_vec()
58 }
59
60 pub fn len(&self) -> usize {
61 self.inner.read().unwrap().len()

Callers 1

serveFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected