pub struct FibNexthop {
pub face_id: u32,
pub cost: u32,
}Expand description
A nexthop in the FIB.
Uses u32 for face_id (consistent with PIT records). The engine layer
maps this to a typed FaceId from ndn-transport; keeping them as u32
here avoids a same-layer dependency between ndn-store and ndn-transport.
Fields§
§face_id: u32§cost: u32Trait Implementations§
Source§impl Clone for FibNexthop
impl Clone for FibNexthop
Source§fn clone(&self) -> FibNexthop
fn clone(&self) -> FibNexthop
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 moreSource§impl Debug for FibNexthop
impl Debug for FibNexthop
Source§impl PartialEq for FibNexthop
impl PartialEq for FibNexthop
impl Eq for FibNexthop
impl StructuralPartialEq for FibNexthop
Auto Trait Implementations§
impl Freeze for FibNexthop
impl RefUnwindSafe for FibNexthop
impl Send for FibNexthop
impl Sync for FibNexthop
impl Unpin for FibNexthop
impl UnwindSafe for FibNexthop
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more