pub trait IpProtoExt: Ip {
type Proto: IpProtocol + GenericOverIp<Self, Type = Self::Proto> + GenericOverIp<Ipv4, Type = Ipv4Proto> + GenericOverIp<Ipv6, Type = Ipv6Proto> + Copy + Clone + Hash + Debug + Display + PartialEq + Eq + PartialOrd + Ord;
}
Expand description
An Ip
extension trait adding an associated type for the IP protocol
number.
Required Associated Types§
Sourcetype Proto: IpProtocol + GenericOverIp<Self, Type = Self::Proto> + GenericOverIp<Ipv4, Type = Ipv4Proto> + GenericOverIp<Ipv6, Type = Ipv6Proto> + Copy + Clone + Hash + Debug + Display + PartialEq + Eq + PartialOrd + Ord
type Proto: IpProtocol + GenericOverIp<Self, Type = Self::Proto> + GenericOverIp<Ipv4, Type = Ipv4Proto> + GenericOverIp<Ipv6, Type = Ipv6Proto> + Copy + Clone + Hash + Debug + Display + PartialEq + Eq + PartialOrd + Ord
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.