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
Auto Trait Implementations
impl RefUnwindSafe for MdnsConfig
impl Send for MdnsConfig
impl Sync for MdnsConfig
impl Unpin for MdnsConfig
impl UnwindSafe for MdnsConfig
Blanket Implementations
Mutably borrows from an owned value. Read more