#[repr(C)]pub struct PamojaRoute {
pub dst: u32,
pub next_hop: u32,
pub cost: u16,
}Expand description
A learned way to reach one node.
Every field is a scalar, so this crosses the boundary by value.
Fields§
§dst: u32The node this route reaches.
next_hop: u32The neighbour to send a packet to on the way there.
cost: u16What the route costs, usually in hops.
Trait Implementations§
Source§impl Clone for PamojaRoute
impl Clone for PamojaRoute
Source§fn clone(&self) -> PamojaRoute
fn clone(&self) -> PamojaRoute
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 moreimpl Copy for PamojaRoute
Source§impl Debug for PamojaRoute
impl Debug for PamojaRoute
impl Eq for PamojaRoute
Source§impl PartialEq for PamojaRoute
impl PartialEq for PamojaRoute
Source§fn eq(&self, other: &PamojaRoute) -> bool
fn eq(&self, other: &PamojaRoute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaRoute
Auto Trait Implementations§
impl Freeze for PamojaRoute
impl RefUnwindSafe for PamojaRoute
impl Send for PamojaRoute
impl Sync for PamojaRoute
impl Unpin for PamojaRoute
impl UnsafeUnpin for PamojaRoute
impl UnwindSafe for PamojaRoute
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