Trait netstack3_core::icmp::IcmpEchoBindingsTypes
source · pub trait IcmpEchoBindingsTypes: Sized {
type ExternalData<I: Ip>: Debug + Send + Sync;
}
Expand description
The bindings context providing external types to ICMP sockets.
§Discussion
We’d like this trait to take an I
type parameter instead of using GAT to
get the IP version, however we end up with problems due to the shape of
[DatagramSocketSpec
] and the underlying support for dual stack sockets.
This is completely fine for all known implementations, except for a rough
edge in fake tests bindings contexts that are already parameterized on I
themselves. This is still better than relying on Box<dyn Any>
to keep the
external data in our references so we take the rough edge.
Required Associated Types§
Object Safety§
This trait is not object safe.