pub struct RouteEntry {
pub port_index: usize,
pub directly_connected: bool,
pub next_hop_mac: MacAddr,
pub last_seen: Option<Instant>,
pub reachability: ReachabilityStatus,
pub busy_until: Option<Instant>,
pub flap_count: u8,
pub last_port_change: Option<Instant>,
}Expand description
A route entry in the router table.
Fields§
§port_index: usizeIndex of the port this network is reachable through.
directly_connected: boolWhether this is a directly-connected network (vs learned via another router).
next_hop_mac: MacAddrMAC address of the next-hop router (empty for directly-connected networks).
last_seen: Option<Instant>When this learned route was last confirmed. None for direct routes.
reachability: ReachabilityStatus§busy_until: Option<Instant>Deadline after which a Busy status auto-clears (spec 6.6.3.6).
flap_count: u8Number of times this route changed ports within the flap detection window.
last_port_change: Option<Instant>When the route last changed ports.
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 · 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