pub struct TopologyNode {
pub id: NodeId,
pub neighbors: Vec<NodeId>,
pub last_route: Option<Vec<NodeId>>,
pub last_rssi: Option<i8>,
pub listening: bool,
}Expand description
One node in the topology.
Fields§
§id: NodeIdNode id.
neighbors: Vec<NodeId>Neighbors in the controller’s routing table.
last_route: Option<Vec<NodeId>>Repeaters of the last frame that reached it.
last_rssi: Option<i8>RSSI of its last ACK at the controller.
listening: boolListening (mains powered) or not.
Trait Implementations§
Source§impl Clone for TopologyNode
impl Clone for TopologyNode
Source§impl Debug for TopologyNode
impl Debug for TopologyNode
impl Eq for TopologyNode
Source§impl PartialEq for TopologyNode
impl PartialEq for TopologyNode
impl StructuralPartialEq for TopologyNode
Auto Trait Implementations§
impl Freeze for TopologyNode
impl RefUnwindSafe for TopologyNode
impl Send for TopologyNode
impl Sync for TopologyNode
impl Unpin for TopologyNode
impl UnsafeUnpin for TopologyNode
impl UnwindSafe for TopologyNode
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
Checks if this value is equivalent to the given key. Read more
§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.