packet_formats::arp

Trait HType

Source
pub trait HType:
    FromBytes
    + IntoBytes
    + Immutable
    + 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.

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 HType for Mac

Source§

const HTYPE: ArpHardwareType = ArpHardwareType::Ethernet

Source§

const HLEN: u8 = 6u8

Source§

const BROADCAST: Mac = Mac::BROADCAST

Implementors§