MCPcopy Create free account
hub / github.com/ceramicnetwork/rust-ceramic / build

Method build

core/src/peer.rs:250–258  ·  view source on GitHub ↗

Finish the build producing a [`PeerKey`].

(self)

Source from the content-addressed store, hash-verified

248impl Builder<WithAddresses<'_>> {
249 /// Finish the build producing a [`PeerKey`].
250 pub fn build(self) -> PeerKey {
251 let entry = PeerEntry::new(
252 self.state.node_key.id(),
253 self.state.expiration,
254 self.state.addresses,
255 );
256 PeerKey::from_entry(&entry, self.state.node_key)
257 .expect("builder should not build invalid peer key")
258 }
259}
260
261#[cfg(test)]

Callers 15

random_interestFunction · 0.45
pollMethod · 0.45
try_newMethod · 0.45
try_new_httpMethod · 0.45
try_new_httpsMethod · 0.45
try_new_https_pinnedMethod · 0.45
try_new_https_mutualMethod · 0.45
createFunction · 0.45
try_newMethod · 0.45

Calls 3

newFunction · 0.85
expectMethod · 0.80
idMethod · 0.45