Struct pnet::packet::ethernet::EtherType []

pub struct EtherType(pub u16);

Represents the Ethernet ethertype field.

Methods

impl EtherType

fn new(val: u16) -> EtherType

Construct a new EtherType

Trait Implementations

impl PrimitiveValues for EtherType

type T = (u16,)

fn to_primitive_values(&self) -> (u16,)

Derived Implementations

impl Ord for EtherType

fn cmp(&self, __arg_0: &EtherType) -> Ordering

impl PartialOrd for EtherType

fn partial_cmp(&self, __arg_0: &EtherType) -> Option<Ordering>

fn lt(&self, __arg_0: &EtherType) -> bool

fn le(&self, __arg_0: &EtherType) -> bool

fn gt(&self, __arg_0: &EtherType) -> bool

fn ge(&self, __arg_0: &EtherType) -> bool

impl Eq for EtherType

impl PartialEq for EtherType

fn eq(&self, __arg_0: &EtherType) -> bool

fn ne(&self, __arg_0: &EtherType) -> bool

impl Debug for EtherType

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for EtherType

fn clone(&self) -> EtherType

fn clone_from(&mut self, source: &Self)

impl Copy for EtherType