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
sourceimpl Clone for MdnsConfig
impl Clone for MdnsConfig
sourcefn clone(&self) -> MdnsConfig
fn clone(&self) -> MdnsConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MdnsConfig
impl Debug for MdnsConfig
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more