#[non_exhaustive]pub struct ResolveConfig {
pub mdns: bool,
pub mdns_timeout: Duration,
}Expand description
How a Resolver behaves, independent of the host it reads its unicast
configuration from.
Non-exhaustive and Default-constructed, like
ZondConfig, so new settings are additive.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mdns: boolWhether .local names are resolved over multicast, and whether a
single-label name falls back to one.
Off leaves a .local name to the hosts file and to a unicast server
configured for its domain. For networks where multicast is filtered or
unwanted, or where only global names are in play.
mdns_timeout: DurationHow long to listen for mDNS replies before accepting that a .local
name has no answer on the segment.
A responder may defer a reply by up to half a second to aggregate answers (RFC 6762 §6.3), and a busy or sleeping device can take longer, so the default is one second: short enough not to stall a scan, long enough to hear a slow device.
A window shorter than half a second is raised to it, since a shorter one cannot hear a correct responder at all.
Trait Implementations§
Source§impl Clone for ResolveConfig
impl Clone for ResolveConfig
impl Copy for ResolveConfig
Source§impl Debug for ResolveConfig
impl Debug for ResolveConfig
Auto Trait Implementations§
impl Freeze for ResolveConfig
impl RefUnwindSafe for ResolveConfig
impl Send for ResolveConfig
impl Sync for ResolveConfig
impl Unpin for ResolveConfig
impl UnsafeUnpin for ResolveConfig
impl UnwindSafe for ResolveConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more