pub struct NeighborEntry {
pub node_name: Name,
pub state: NeighborState,
pub faces: Vec<(FaceId, MacAddr, String)>,
pub rtt_us: Option<u32>,
pub pending_nonce: Option<u32>,
}Expand description
A discovered neighbor and its per-link face bindings.
Fields§
§node_name: NameNDN node name (e.g. /ndn/site/host).
state: NeighborStateCurrent reachability state.
faces: Vec<(FaceId, MacAddr, String)>Per-link face bindings: (face_id, source_mac, interface_name).
A peer may be reachable over multiple interfaces simultaneously (e.g. Ethernet + Wi-Fi). Each gets its own unicast face.
rtt_us: Option<u32>Estimated round-trip time in microseconds (EWMA, None until measured).
pending_nonce: Option<u32>Nonce sent in the most recent outstanding hello Interest, used for replay detection and RTT measurement.
Implementations§
Source§impl NeighborEntry
impl NeighborEntry
Trait Implementations§
Source§impl Clone for NeighborEntry
impl Clone for NeighborEntry
Source§fn clone(&self) -> NeighborEntry
fn clone(&self) -> NeighborEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for NeighborEntry
impl RefUnwindSafe for NeighborEntry
impl Send for NeighborEntry
impl Sync for NeighborEntry
impl Unpin for NeighborEntry
impl UnwindSafe for NeighborEntry
Blanket Implementations§
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
Mutably borrows from an owned value. Read more