Trait packet_formats::ip::IpExt

source ·
pub trait IpExt: EthernetIpExt + IcmpIpExt {
    type Packet<B: ByteSlice>: IpPacket<B, Self, Builder = Self::PacketBuilder>;
    type PacketBuilder: IpPacketBuilder<Self> + Eq;
}
Expand description

An extension trait to the Ip trait adding associated types relevant for packet parsing and serialization.

Required Associated Types§

source

type Packet<B: ByteSlice>: IpPacket<B, Self, Builder = Self::PacketBuilder>

An IP packet type for this IP version.

source

type PacketBuilder: IpPacketBuilder<Self> + Eq

An IP packet builder type for the IP version.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IpExt for Ipv4

source§

impl IpExt for Ipv6

Implementors§