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;
}
Expand description

An Ip extension trait adding an associated type for the IP protocol number.

Required Associated Types§

source

type Proto: IpProtocol + GenericOverIp<Self, Type = Self::Proto> + GenericOverIp<Ipv4, Type = Ipv4Proto> + GenericOverIp<Ipv6, Type = Ipv6Proto> + Copy + Clone + Hash + Debug + Display + PartialEq + Eq

The type representing an IPv4 or IPv6 protocol number.

For IPv4, this is Ipv4Proto, and for IPv6, this is Ipv6Proto.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IpProtoExt for Ipv4

source§

impl IpProtoExt for Ipv6

Implementors§