Trait packet_formats::arp::PType

source ·
pub trait PType: FromBytes + AsBytes + NoCell + 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.

Object Safety§

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§