pub struct RoutingHandle {
pub rib: Arc<Rib>,
pub fib: Arc<Fib>,
pub faces: Arc<FaceTable>,
pub neighbors: Arc<NeighborTable>,
}Expand description
Engine handles passed to a routing protocol when it starts.
Bundles the shared tables a routing protocol needs to install routes and
query forwarding state. Passed by value to RoutingProtocol::start.
Fields§
§rib: Arc<Rib>Routing Information Base — the protocol writes routes here via
rib.add() / rib.remove() and calls rib.apply_to_fib() to push
updates into the FIB.
fib: Arc<Fib>Forwarding Information Base — needed for rib.apply_to_fib() calls.
faces: Arc<FaceTable>Face table — read to enumerate active faces (e.g. to broadcast updates).
neighbors: Arc<NeighborTable>Neighbor table — read-only view of discovered peers and their faces.
Auto Trait Implementations§
impl Freeze for RoutingHandle
impl !RefUnwindSafe for RoutingHandle
impl Send for RoutingHandle
impl Sync for RoutingHandle
impl Unpin for RoutingHandle
impl !UnwindSafe for RoutingHandle
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