Module medium

Module medium 

Source
Expand description

LinkMedium trait — abstraction over link-layer differences for discovery.

UDP and Ethernet neighbor discovery share the same SWIM/hello/probe state machine but differ in address types, face creation, and packet signing. Implementing LinkMedium provides those customisation points while HelloProtocol<T> supplies the common logic.

Structs§

HelloCore
Shared (non-link-specific) fields used by HelloProtocol<T>.
HelloState
Mutable state shared by all HelloProtocol<T> instances.

Constants§

HELLO_PREFIX_DEPTH
HELLO_PREFIX_STR

Traits§

LinkMedium
Abstraction over link-layer differences between discovery protocols.