pub fn add_known_address(&mut self, peer_id: PeerId, addr: Multiaddr) {
		if self.discovery.user_defined.iter().all(|(p, a)| *p != peer_id && *a != addr) {
			self.discovery.user_defined.push((peer_id, addr));
		}
	}
/// Adds a hard-coded address for the given peer, that never expires.
Adds a hard-coded address for the given peer, that never expires.
Adds a hard - coded address for the given peer that never expires .
pub fn add_known_address(&mut self, peer_id: PeerId, addr: Multiaddr) {
		if self.discovery.user_defined.iter().all(|(p, a)| *p != peer_id && *a != addr) {
			self.discovery.user_defined.push((peer_id, addr));
		}
	}
pub fn add_known_address ( & mut self , peer_id : PeerId , addr : Multiaddr ) { if self . discovery . user_defined . iter ( ) . all ( | ( p , a ) | * p != peer_id && * a != addr ) { self . discovery . user_defined . push ( ( peer_id , addr ) ) ; } }
Adds a hard-coded address for the given peer, that never expires.
Adds a hard - coded address for the given peer that never expires .
&mut self
peer_id
PeerId
addr
Multiaddr
&mut self
peer_id
PeerId
addr
Multiaddr