pub struct Topology { /* private fields */ }Expand description
The link table.
Implementations§
Source§impl Topology
impl Topology
Sourcepub fn last_hop(
&mut self,
source: NodeId,
coordinator: NodeId,
lqi: u8,
rssi: Option<i8>,
now: u64,
)
pub fn last_hop( &mut self, source: NodeId, coordinator: NodeId, lqi: u8, rssi: Option<i8>, now: u64, )
A message from source arrived with this last-hop quality. The
last hop is the last relay of source’s recorded route, or source
itself when it has none.
Sourcepub fn route_record(
&mut self,
source: NodeId,
relays: &[NodeId],
coordinator: NodeId,
lqi: Option<u8>,
rssi: Option<i8>,
now: u64,
)
pub fn route_record( &mut self, source: NodeId, relays: &[NodeId], coordinator: NodeId, lqi: Option<u8>, rssi: Option<i8>, now: u64, )
A route record: source reached the coordinator through relays.
Sourcepub fn neighbor(&mut self, router: NodeId, neighbor: NodeId, lqi: u8, now: u64)
pub fn neighbor(&mut self, router: NodeId, neighbor: NodeId, lqi: u8, now: u64)
A router reported a neighbor and the quality it hears it at.
Sourcepub fn remove_node(&mut self, node: NodeId)
pub fn remove_node(&mut self, node: NodeId)
Forget a device that left.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Topology
impl RefUnwindSafe for Topology
impl Send for Topology
impl Sync for Topology
impl Unpin for Topology
impl UnsafeUnpin for Topology
impl UnwindSafe for Topology
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