Trait pnet_packet::PrimitiveValues[][src]

pub trait PrimitiveValues {
    type T;
    fn to_primitive_values(&self) -> Self::T;
}
Expand description

Used to convert a type to primitive values representing it.

Associated Types

type T[src]

Expand description

A tuple of types, to represent the current value.

Loading content...

Required methods

fn to_primitive_values(&self) -> Self::T[src]

Expand description

Convert a value to primitive types representing it.

Loading content...

Implementations on Foreign Types

impl PrimitiveValues for MacAddr[src]

type T = (u8, u8, u8, u8, u8, u8)

pub fn to_primitive_values(&self) -> (u8, u8, u8, u8, u8, u8)[src]

impl PrimitiveValues for Ipv4Addr[src]

type T = (u8, u8, u8, u8)

pub fn to_primitive_values(&self) -> (u8, u8, u8, u8)[src]

impl PrimitiveValues for Ipv6Addr[src]

type T = (u16, u16, u16, u16, u16, u16, u16, u16)

pub fn to_primitive_values(&self) -> (u16, u16, u16, u16, u16, u16, u16, u16)[src]

Loading content...

Implementors

impl PrimitiveValues for ArpHardwareType[src]

impl PrimitiveValues for ArpOperation[src]

impl PrimitiveValues for EtherType[src]

impl PrimitiveValues for pnet_packet::icmp::echo_reply::Identifier[src]

impl PrimitiveValues for pnet_packet::icmp::echo_reply::SequenceNumber[src]

impl PrimitiveValues for pnet_packet::icmp::echo_request::Identifier[src]

impl PrimitiveValues for pnet_packet::icmp::echo_request::SequenceNumber[src]

impl PrimitiveValues for IcmpCode[src]

impl PrimitiveValues for IcmpType[src]

impl PrimitiveValues for NdpOptionType[src]

impl PrimitiveValues for Icmpv6Code[src]

impl PrimitiveValues for Icmpv6Type[src]

impl PrimitiveValues for IpNextHeaderProtocol[src]

impl PrimitiveValues for Ipv4OptionNumber[src]

impl PrimitiveValues for TcpOptionNumber[src]

impl PrimitiveValues for UsbPcapFunction[src]

type T = (u16,)

fn to_primitive_values(&self) -> Self::T[src]

impl PrimitiveValues for UsbPcapStatus[src]

type T = (u32,)

fn to_primitive_values(&self) -> Self::T[src]

impl PrimitiveValues for ClassOfService[src]

Loading content...