Trait libp2p_mdns::MdnsTopology
source · pub trait MdnsTopology: Topology {
fn add_mdns_discovered_address(&mut self, peer: PeerId, addr: Multiaddr);
}
Expand description
Trait that must be implemented on the network topology for it to be usable with Mdns
.
Required Methods§
sourcefn add_mdns_discovered_address(&mut self, peer: PeerId, addr: Multiaddr)
fn add_mdns_discovered_address(&mut self, peer: PeerId, addr: Multiaddr)
Adds an address discovered by mDNS.
Will never be called with the local peer ID.