pub struct RibRoute {
pub face_id: FaceId,
pub origin: u64,
pub cost: u32,
pub flags: u64,
pub expires_at: Option<Instant>,
}Expand description
A single route record in the RIB.
Routes are uniquely identified by (face_id, origin). The same prefix can
have multiple routes — from different faces or from different protocols
(origins) for the same face.
Fields§
§face_id: FaceId§origin: u64Route origin. Used to namespace routes by the protocol that installed them.
See ndn_config::control_parameters::origin for standard values.
cost: u32§flags: u64Route flags (e.g. CHILD_INHERIT, CAPTURE).
See ndn_config::control_parameters::route_flags.
expires_at: Option<Instant>Absolute expiry time. None means the route never expires.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RibRoute
impl RefUnwindSafe for RibRoute
impl Send for RibRoute
impl Sync for RibRoute
impl Unpin for RibRoute
impl UnwindSafe for RibRoute
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