Struct smoltcp::wire::Ipv4Repr [] [src]

pub struct Ipv4Repr {
    pub src_addr: Address,
    pub dst_addr: Address,
    pub protocol: Protocol,
    pub payload_len: usize,
}

A high-level representation of an Internet Protocol version 4 packet header.

Fields

Methods

impl Repr
[src]

[src]

Parse an Internet Protocol version 4 packet and return a high-level representation.

[src]

Return the length of a header that will be emitted from this high-level representation.

[src]

Emit a high-level representation into an Internet Protocol version 4 packet.

Trait Implementations

impl Debug for Repr
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Repr
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Repr
[src]

impl Clone for Repr
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Repr
[src]

impl Display for Repr
[src]

[src]

Formats the value using the given formatter. Read more