Trait packet_formats::ip::IpProtoExt
source · 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
Object Safety§
This trait is not object safe.