pub trait IcmpIpExt: IpExt + IcmpIpExt {
type ErrorCode: Debug + Copy + PartialEq + GenericOverIp<Self, Type = Self::ErrorCode> + GenericOverIp<Ipv4, Type = Icmpv4ErrorCode> + GenericOverIp<Ipv6, Type = Icmpv6ErrorCode> + Into<IcmpErrorCode>;
}
Expand description
An extension trait adding extra ICMP-related functionality to IP versions.
Required Associated Types§
Sourcetype ErrorCode: Debug + Copy + PartialEq + GenericOverIp<Self, Type = Self::ErrorCode> + GenericOverIp<Ipv4, Type = Icmpv4ErrorCode> + GenericOverIp<Ipv6, Type = Icmpv6ErrorCode> + Into<IcmpErrorCode>
type ErrorCode: Debug + Copy + PartialEq + GenericOverIp<Self, Type = Self::ErrorCode> + GenericOverIp<Ipv4, Type = Icmpv4ErrorCode> + GenericOverIp<Ipv6, Type = Icmpv6ErrorCode> + Into<IcmpErrorCode>
The type of error code for this version of ICMP - Icmpv4ErrorCode
or
Icmpv6ErrorCode
.
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.