#[non_exhaustive]pub struct RoutedTargets {
pub local: HashMap<Link, IpSet>,
pub routed: Vec<RoutedTarget>,
pub unmapped: IpSet,
pub ours: IpSet,
pub ambiguous: Vec<Ipv6Range>,
pub unenumerable: Vec<Ipv6Range>,
}Expand description
The result of classifying a set of targets against this host’s interfaces and routing table.
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.local: HashMap<Link, IpSet>Targets that share an interface’s Layer-2 segment, grouped by that interface. Reachable directly, so they get an ARP/NDP discovery strategy bound to the interface.
Only a link that carries frames has a segment, except for a link-local target whose zone names a link that does not: the zone is the user’s own statement of where the target is.
routed: Vec<RoutedTarget>Targets reached through a gateway or a tunnel, each already paired with the source address to probe it from. Handled by a single raw TCP SYN scanner.
unmapped: IpSetTargets that are neither on-link nor have a resolvable route, left to the unprivileged connect fallback. Loopback is always here, in both families, whatever the routing table or a forced source says about it.
ours: IpSetTargets that are this host’s own addresses.
No strategy can establish one: the kernel reaches an address the host holds through loopback, so an ARP request for it goes unanswered. It is up by construction.
ambiguous: Vec<Ipv6Range>Link-local IPv6 targets with no interface named on them.
Every interface holds an fe80::/64, so such a target matches all of
them and identifies none. Probing whichever the host listed first could
report the address absent when it is present on another segment. Written
fe80::1%en0, it is unambiguous.
unenumerable: Vec<Ipv6Range>Off-link IPv6 ranges too large to enumerate, kept whole.
They were never probed. They are carried out so a caller reading “no hosts found” does not take it as evidence about the range.
Trait Implementations§
Source§impl Debug for RoutedTargets
impl Debug for RoutedTargets
Auto Trait Implementations§
impl Freeze for RoutedTargets
impl RefUnwindSafe for RoutedTargets
impl Send for RoutedTargets
impl Sync for RoutedTargets
impl Unpin for RoutedTargets
impl UnsafeUnpin for RoutedTargets
impl UnwindSafe for RoutedTargets
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> 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