[][src]Trait pnet_packet::PrimitiveValues

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

Used to convert a type to primitive values representing it.

Associated Types

type T

A tuple of types, to represent the current value.

Loading content...

Required methods

fn to_primitive_values(&self) -> Self::T

Convert a value to primitive types representing it.

Loading content...

Implementations on Foreign Types

impl PrimitiveValues for Ipv4Addr[src]

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

impl PrimitiveValues for Ipv6Addr[src]

impl PrimitiveValues for MacAddr[src]

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

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 ClassOfService[src]

Loading content...