pub trait PrimitiveValues {
    type T;

    // Required method
    fn to_primitive_values(&self) -> Self::T;
}
Expand description

Used to convert a type to primitive values representing it.

Required Associated Types§

type T

A tuple of types, to represent the current value.

Required Methods§

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

Convert a value to primitive types representing it.

Implementations on Foreign Types§

§

impl PrimitiveValues for Ipv4Addr

§

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

§

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

§

impl PrimitiveValues for Ipv6Addr

§

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

§

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

Implementors§

§

impl PrimitiveValues for MacAddr

§

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

source§

impl PrimitiveValues for ArpHardwareType

§

type T = (u16,)

source§

impl PrimitiveValues for ArpOperation

§

type T = (u16,)

source§

impl PrimitiveValues for DhcpHardwareType

§

type T = (u8,)

source§

impl PrimitiveValues for DhcpOperation

§

type T = (u8,)

source§

impl PrimitiveValues for EtherType

§

type T = (u16,)

source§

impl PrimitiveValues for pnet::packet::icmp::echo_reply::Identifier

§

type T = (u16,)

source§

impl PrimitiveValues for pnet::packet::icmp::echo_reply::SequenceNumber

§

type T = (u16,)

source§

impl PrimitiveValues for pnet::packet::icmp::echo_request::Identifier

§

type T = (u16,)

source§

impl PrimitiveValues for pnet::packet::icmp::echo_request::SequenceNumber

§

type T = (u16,)

source§

impl PrimitiveValues for IcmpCode

§

type T = (u8,)

source§

impl PrimitiveValues for IcmpType

§

type T = (u8,)

source§

impl PrimitiveValues for pnet::packet::icmpv6::echo_reply::Identifier

§

type T = (u16,)

source§

impl PrimitiveValues for pnet::packet::icmpv6::echo_reply::SequenceNumber

§

type T = (u16,)

source§

impl PrimitiveValues for pnet::packet::icmpv6::echo_request::Identifier

§

type T = (u16,)

source§

impl PrimitiveValues for pnet::packet::icmpv6::echo_request::SequenceNumber

§

type T = (u16,)

source§

impl PrimitiveValues for NdpOptionType

§

type T = (u8,)

source§

impl PrimitiveValues for Icmpv6Code

§

type T = (u8,)

source§

impl PrimitiveValues for Icmpv6Type

§

type T = (u8,)

source§

impl PrimitiveValues for IpNextHeaderProtocol

§

type T = (u8,)

source§

impl PrimitiveValues for Ipv4OptionNumber

§

type T = (u8,)

source§

impl PrimitiveValues for TcpOptionNumber

§

type T = (u8,)

source§

impl PrimitiveValues for UsbPcapFunction

§

type T = (u16,)

source§

impl PrimitiveValues for UsbPcapStatus

§

type T = (u32,)

source§

impl PrimitiveValues for ClassOfService

§

type T = (u8,)