Trait packet_formats::arp::HType

source ·
pub trait HType: FromBytes + AsBytes + NoCell + Unaligned + Copy + Clone + Hash + Eq {
    const HTYPE: ArpHardwareType;
    const HLEN: u8;
    const BROADCAST: Self;
}
Expand description

A trait to represent an ARP hardware type.

Required Associated Constants§

source

const HTYPE: ArpHardwareType

The hardware type.

source

const HLEN: u8

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

source

const BROADCAST: Self

The broadcast address for this type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl HType for Mac

source§

const HTYPE: ArpHardwareType = ArpHardwareType::Ethernet

source§

const HLEN: u8 = 6u8

source§

const BROADCAST: Mac = Mac::BROADCAST

Implementors§