Struct netsim::wire::Ipv4Fields [] [src]

pub struct Ipv4Fields {
    pub source_ip: Ipv4Addr,
    pub dest_ip: Ipv4Addr,
    pub ttl: u8,
}

The header fields of an Ipv4 packet.

Fields

IP address of the sender.

IP address of the destination.

Packet's time-to-live field. ie. hop count.

Methods

impl Ipv4Fields
[src]

[src]

Parse an IPv4 header from a byte buffer

Trait Implementations

impl Debug for Ipv4Fields
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Ipv4Fields
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Ipv4Fields
[src]

impl PartialEq for Ipv4Fields
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for Ipv4Fields

impl Sync for Ipv4Fields