Trait netstack3_ip::icmp::EchoTransportContextMarker

source ·
pub trait EchoTransportContextMarker { }
Expand description

A marker trait to prevent integration from creating a recursive loop when handling Echo sockets.

This is a requirement for InnerIcmpContext::EchoTransportContext which disallows the integration layer from using IcmpIpTransportContext as the associated type, which would create a recursive loop.

By not implementing this trait for [IcmpIpTransporContext] we prevent the mistake.

Implementors§