Trait PrimitiveValues

Source
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§

Source

type T

A tuple of types, to represent the current value.

Required Methods§

Source

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

Convert a value to primitive types representing it.

Implementations on Foreign Types§

Source§

impl PrimitiveValues for Ipv4Addr

Source§

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

Source§

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

Source§

impl PrimitiveValues for Ipv6Addr

Source§

impl PrimitiveValues for MacAddr

Source§

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

Source§

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

Implementors§

Source§

impl PrimitiveValues for Opcode

Source§

type T = (u8,)

Source§

impl PrimitiveValues for Retcode

Source§

type T = (u8,)

Source§

impl PrimitiveValues for ArpHardwareType

Source§

type T = (u16,)

Source§

impl PrimitiveValues for ArpOperation

Source§

type T = (u16,)

Source§

impl PrimitiveValues for DhcpHardwareType

Source§

type T = (u8,)

Source§

impl PrimitiveValues for DhcpOperation

Source§

type T = (u8,)

Source§

impl PrimitiveValues for DnsClass

Source§

type T = (u16,)

Source§

impl PrimitiveValues for DnsType

Source§

type T = (u16,)

Source§

impl PrimitiveValues for EtherType

Source§

type T = (u16,)

Source§

impl PrimitiveValues for FlowControlOpcode

Source§

type T = (u16,)

Source§

impl PrimitiveValues for pnet_packet::icmp::echo_reply::Identifier

Source§

type T = (u16,)

Source§

impl PrimitiveValues for pnet_packet::icmp::echo_reply::SequenceNumber

Source§

type T = (u16,)

Source§

impl PrimitiveValues for pnet_packet::icmp::echo_request::Identifier

Source§

type T = (u16,)

Source§

impl PrimitiveValues for pnet_packet::icmp::echo_request::SequenceNumber

Source§

type T = (u16,)

Source§

impl PrimitiveValues for IcmpCode

Source§

type T = (u8,)

Source§

impl PrimitiveValues for IcmpType

Source§

type T = (u8,)

Source§

impl PrimitiveValues for pnet_packet::icmpv6::echo_reply::Identifier

Source§

type T = (u16,)

Source§

impl PrimitiveValues for pnet_packet::icmpv6::echo_reply::SequenceNumber

Source§

type T = (u16,)

Source§

impl PrimitiveValues for pnet_packet::icmpv6::echo_request::Identifier

Source§

type T = (u16,)

Source§

impl PrimitiveValues for pnet_packet::icmpv6::echo_request::SequenceNumber

Source§

type T = (u16,)

Source§

impl PrimitiveValues for NdpOptionType

Source§

type T = (u8,)

Source§

impl PrimitiveValues for Icmpv6Code

Source§

type T = (u8,)

Source§

impl PrimitiveValues for Icmpv6Type

Source§

type T = (u8,)

Source§

impl PrimitiveValues for IpNextHeaderProtocol

Source§

type T = (u8,)

Source§

impl PrimitiveValues for Ipv4OptionNumber

Source§

type T = (u8,)

Source§

impl PrimitiveValues for TcpOptionNumber

Source§

type T = (u8,)

Source§

impl PrimitiveValues for UsbPcapFunction

Source§

type T = (u16,)

Source§

impl PrimitiveValues for UsbPcapStatus

Source§

type T = (u32,)

Source§

impl PrimitiveValues for ClassOfService

Source§

type T = (u8,)