pub struct RouteEntry {
pub destination: NodeId,
pub hops: u8,
pub flags: u8,
pub mesh_ip: [u8; 4],
}Expand description
A single route entry in a route advertisement.
Fields§
§destination: NodeIdDestination node this route describes.
hops: u8Hop count to reach destination.
flags: u8bit 0: is_gateway
mesh_ip: [u8; 4]Mesh IPv4 address assigned to destination.
Implementations§
Source§impl RouteEntry
impl RouteEntry
Sourcepub fn is_gateway(&self) -> bool
pub fn is_gateway(&self) -> bool
Return true if this route advertises gateway capability.
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 (const: unstable) · 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 RouteEntry
impl Debug for RouteEntry
Source§impl PartialEq for RouteEntry
impl PartialEq for RouteEntry
Source§fn eq(&self, other: &RouteEntry) -> bool
fn eq(&self, other: &RouteEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RouteEntry
impl StructuralPartialEq for RouteEntry
Auto 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