Trait netstack3_core::device::NeighborVisitor
source · pub trait NeighborVisitor<C: NonSyncContext, T: Instant> {
// Required method
fn visit_neighbors<LinkAddress: Debug>(
&self,
device: DeviceId<C>,
neighbors: impl Iterator<Item = NeighborStateInspect<LinkAddress, T>>
);
}
Expand description
Visitor for NUD state.
Required Methods§
sourcefn visit_neighbors<LinkAddress: Debug>(
&self,
device: DeviceId<C>,
neighbors: impl Iterator<Item = NeighborStateInspect<LinkAddress, T>>
)
fn visit_neighbors<LinkAddress: Debug>( &self, device: DeviceId<C>, neighbors: impl Iterator<Item = NeighborStateInspect<LinkAddress, T>> )
Performs a user-defined operation over an iterator of neighbor state
describing the neighbors associated with a given device
.
This function will be called N times, where N is the number of devices in the stack.
Object Safety§
This trait is not object safe.