pub enum NeighborState {
Probing {
attempts: u8,
last_probe: Instant,
},
Established {
last_seen: Instant,
},
Stale {
miss_count: u8,
last_seen: Instant,
},
Absent,
}Expand description
Lifecycle state of a neighbor peer.
Variants§
Probing
Actively probing — waiting for a hello response.
Fields
Established
Link confirmed reachable.
Stale
Missed several hellos; link may be degrading.
Fields
Absent
Peer is considered unreachable; entry pending removal.
Trait Implementations§
Source§impl Clone for NeighborState
impl Clone for NeighborState
Source§fn clone(&self) -> NeighborState
fn clone(&self) -> NeighborState
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 NeighborState
impl RefUnwindSafe for NeighborState
impl Send for NeighborState
impl Sync for NeighborState
impl Unpin for NeighborState
impl UnwindSafe for NeighborState
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