Struct libp2p_mdns::MdnsConfig
source · Expand description
Configuration for mDNS.
Fields§
§ttl: Duration
TTL to use for mdns records.
query_interval: Duration
Interval at which to poll the network for new peers. This isn’t necessary during normal operation but avoids the case that an initial packet was lost and not discovering any peers until a new peer joins the network. Receiving an mdns packet resets the timer preventing unnecessary traffic.
enable_ipv6: bool
Use IPv6 instead of IPv4.
Trait Implementations§
source§impl Clone for MdnsConfig
impl Clone for MdnsConfig
source§fn clone(&self) -> MdnsConfig
fn clone(&self) -> MdnsConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more