NeighborTableView

Trait NeighborTableView 

Source
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§

Source

fn get(&self, name: &Name) -> Option<NeighborEntry>

Look up an entry by node name.

Source

fn all(&self) -> Vec<NeighborEntry>

Snapshot all entries.

Source

fn face_for_peer(&self, mac: &MacAddr, iface: &str) -> Option<FaceId>

Find any existing face for this MAC + interface combination.

Implementors§