#[non_exhaustive]pub enum NeighborState {
Incomplete,
Reachable,
Stale,
Delay,
Probe,
Failed,
Permanent,
Unknown,
}Expand description
The reachability state of a neighbor entry, per the Neighbor Unreachability
Detection state machine shared (with minor naming differences) by Linux’s
NUD_* states, BSD/macOS’s route-socket RTF_* flags on an ARP/NDP
entry, and Windows’s NL_NEIGHBOR_STATE.
#[non_exhaustive]: not every platform exposes every state (BSD/macOS’s
route-socket view collapses several of these into a single flags word),
and Unknown covers whatever a platform can’t map cleanly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Incomplete
Address resolution is in progress; no link-layer address yet.
Reachable
Confirmed reachable within the last reachable-time window.
Stale
Reachability is unconfirmed but the entry has not yet been probed.
Delay
About to send a reachability probe after a delay.
Probe
Actively probing to reconfirm reachability.
Failed
Address resolution failed.
Permanent
Manually configured; never expires or is probed.
Unknown
The platform does not expose a separate reachability state.
Trait Implementations§
Source§impl Clone for NeighborState
impl Clone for NeighborState
Source§fn clone(&self) -> NeighborState
fn clone(&self) -> NeighborState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more