pub struct RouteEntry {
pub next_hop: String,
pub hop_count: u8,
pub last_seen: Instant,
pub quality: f32,
pub sequence_number: u32,
}Expand description
A routing entry tracking how to reach a destination. Uses a destination sequence number (DSDV-style) to avoid loops: newer updates from the destination are preferred; stale routes are ignored.
Fields§
§next_hop: StringThe next-hop neighbor to reach this destination.
hop_count: u8Hop count to destination through this route.
last_seen: InstantWhen this route was last confirmed.
quality: f32Quality score of this route (higher is better).
sequence_number: u32Destination sequence number from the destination node (DSDV). Higher values are fresher; prefer route with higher sequence to avoid count-to-infinity.
Trait Implementations§
Source§impl Clone for RouteEntry
impl Clone for RouteEntry
Source§fn clone(&self) -> RouteEntry
fn clone(&self) -> RouteEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RouteEntry
impl RefUnwindSafe for RouteEntry
impl Send for RouteEntry
impl Sync for RouteEntry
impl Unpin for RouteEntry
impl UnsafeUnpin for RouteEntry
impl UnwindSafe for RouteEntry
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