pub struct Neighbor {
pub neigh: MacAddr6,
pub outgoing_if: String,
pub last_seen_ms: u32,
pub throughput_kbps: Option<u32>,
}Expand description
Represents a neighboring node in the batman-adv mesh network.
A neighbor is a directly reachable node within the mesh. This struct provides information about its MAC address, the interface used to reach it, and metrics such as last seen time and optional throughput.
Fields§
§neigh: MacAddr6MAC address of the neighbor.
Corresponds to BATADV_ATTR_NEIGH_ADDRESS.
outgoing_if: StringOutgoing interface name used to reach the neighbor.
Falls back from HARD_IFINDEX if HARD_IFNAME is unavailable.
Corresponds to BATADV_ATTR_HARD_IFNAME.
last_seen_ms: u32Time since the neighbor was last seen, in milliseconds.
Corresponds to BATADV_ATTR_LAST_SEEN_MSECS.
throughput_kbps: Option<u32>Optional throughput towards this neighbor in kilobits per second.
Corresponds to BATADV_ATTR_THROUGHPUT.
Only available in BATMAN_V mode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Neighbor
impl RefUnwindSafe for Neighbor
impl Send for Neighbor
impl Sync for Neighbor
impl Unpin for Neighbor
impl UnsafeUnpin for Neighbor
impl UnwindSafe for Neighbor
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