[]Trait netsim_embed::PrimitiveValues

pub trait PrimitiveValues {
    type T;
    pub 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

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

Convert a value to primitive types representing it.

Loading content...

Implementations on Foreign Types

impl PrimitiveValues for MacAddr

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

impl PrimitiveValues for Ipv6Addr

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

impl PrimitiveValues for Ipv4Addr

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

Loading content...

Implementors

impl PrimitiveValues for ArpHardwareType[src]

type T = (u16,)

impl PrimitiveValues for ArpOperation[src]

type T = (u16,)

impl PrimitiveValues for EtherType[src]

type T = (u16,)

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

type T = (u16,)

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

type T = (u16,)

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

type T = (u16,)

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

type T = (u16,)

impl PrimitiveValues for IcmpCode[src]

type T = (u8,)

impl PrimitiveValues for IcmpType[src]

type T = (u8,)

impl PrimitiveValues for NdpOptionType[src]

type T = (u8,)

impl PrimitiveValues for Icmpv6Code[src]

type T = (u8,)

impl PrimitiveValues for Icmpv6Type[src]

type T = (u8,)

impl PrimitiveValues for IpNextHeaderProtocol[src]

type T = (u8,)

impl PrimitiveValues for Ipv4OptionNumber[src]

type T = (u8,)

impl PrimitiveValues for TcpOptionNumber[src]

type T = (u8,)

impl PrimitiveValues for ClassOfService[src]

type T = (u8,)

Loading content...