packet_formats::arp

Trait PType

Source
pub trait PType:
    FromBytes
    + IntoBytes
    + Immutable
    + Unaligned
    + Copy
    + Clone
    + Hash
    + Eq {
    const PTYPE: ArpNetworkType;
    const PLEN: u8;
}
Expand description

A trait to represent an ARP protocol type.

Required Associated Constants§

Source

const PTYPE: ArpNetworkType

The protocol type.

Source

const PLEN: u8

The in-memory size of an instance of the type.

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 PType for Ipv4Addr

Source§

const PTYPE: ArpNetworkType = ArpNetworkType::Ipv4

Source§

const PLEN: u8 = 4u8

Implementors§