packet_formats::ethernet

Trait EthernetIpExt

Source
pub trait EthernetIpExt: Ip {
    const ETHER_TYPE: EtherType;
}
Expand description

An extension trait adding IP-related functionality to Ipv4 and Ipv6.

Required Associated Constants§

Source

const ETHER_TYPE: EtherType

The EtherType value for an associated IP version.

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.

Implementations on Foreign Types§

Source§

impl EthernetIpExt for Ipv4

Source§

const ETHER_TYPE: EtherType = EtherType::Ipv4

Source§

impl EthernetIpExt for Ipv6

Source§

const ETHER_TYPE: EtherType = EtherType::Ipv6

Implementors§