Trait IntoCanonicalIpAddr
pub trait IntoCanonicalIpAddr {
// Required method
fn into_canonical_ip_addr(self) -> Self;
}Expand description
Converts an IP address into a canonical representation.
Canonical means:
- IPv4 stays IPv4.
- IPv6 stays IPv6, except when the IPv6 address is an IPv4 mapped address. In that cases we convert it to the embedded IPv4 address.
Required Methods§
fn into_canonical_ip_addr(self) -> Self
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.