Struct pnet::packet::ip::IpNextHeaderProtocol []

pub struct IpNextHeaderProtocol(pub u8);

Represents an IPv4 next level protocol, or an IPv6 next header protocol, see IpNextHeaderProtocols for a list of values.

Methods

impl IpNextHeaderProtocol

fn new(value: u8) -> IpNextHeaderProtocol

Create a new IpNextHeaderProtocol

Trait Implementations

impl PrimitiveValues for IpNextHeaderProtocol

type T = (u8,)

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

Derived Implementations

impl Ord for IpNextHeaderProtocol

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

impl PartialOrd for IpNextHeaderProtocol

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

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

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

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

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

impl Eq for IpNextHeaderProtocol

impl PartialEq for IpNextHeaderProtocol

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

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

impl Debug for IpNextHeaderProtocol

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

impl Copy for IpNextHeaderProtocol

impl Clone for IpNextHeaderProtocol

fn clone(&self) -> IpNextHeaderProtocol

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