pub trait NeighborTableView: Send + Sync {
// Required methods
fn get(&self, name: &Name) -> Option<NeighborEntry>;
fn all(&self) -> Vec<NeighborEntry>;
fn face_for_peer(&self, mac: &MacAddr, iface: &str) -> Option<FaceId>;
}Expand description
Read-only view of the neighbor table, handed to protocols via the context.
Required Methods§
Sourcefn get(&self, name: &Name) -> Option<NeighborEntry>
fn get(&self, name: &Name) -> Option<NeighborEntry>
Look up an entry by node name.
Sourcefn all(&self) -> Vec<NeighborEntry>
fn all(&self) -> Vec<NeighborEntry>
Snapshot all entries.