netstack3_base::socket

Trait DualStackIpExt

Source
pub trait DualStackIpExt: Ip {
    type OtherVersion: DualStackIpExt<OtherVersion = Self>;
}
Expand description

A dual stack IP extention trait that provides the OtherVersion associated type.

Required Associated Types§

Source

type OtherVersion: DualStackIpExt<OtherVersion = Self>

The “other” IP version, e.g. Ipv4 for Ipv6 and vice-versa.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl DualStackIpExt for Ipv4

Source§

impl DualStackIpExt for Ipv6

Implementors§