Struct libp2p_mdns::MdnsConfig [−][src]
pub struct MdnsConfig {
pub ttl: Duration,
pub query_interval: Duration,
pub multicast_addr: IpAddr,
}
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.
multicast_addr: IpAddr
IP address for multicast.
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