pub struct NeighborInfo {
pub peer_id: String,
pub rssi: i16,
pub hops_to_destination: Option<u8>,
pub link_quality: u8,
pub relay_info: Option<RelayInfo>,
}Expand description
Information about a neighboring device.
Fields§
§peer_id: StringUnique identifier for this neighbor.
rssi: i16RSSI signal strength (dBm).
hops_to_destination: Option<u8>Number of hops to destination through this neighbor (if known).
link_quality: u8Link quality to this neighbor (0-100).
relay_info: Option<RelayInfo>Relay information if this neighbor is a relay.
Trait Implementations§
Source§impl Clone for NeighborInfo
impl Clone for NeighborInfo
Source§fn clone(&self) -> NeighborInfo
fn clone(&self) -> NeighborInfo
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 moreAuto Trait Implementations§
impl Freeze for NeighborInfo
impl RefUnwindSafe for NeighborInfo
impl Send for NeighborInfo
impl Sync for NeighborInfo
impl Unpin for NeighborInfo
impl UnsafeUnpin for NeighborInfo
impl UnwindSafe for NeighborInfo
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