Enum smoltcp::wire::Icmpv4Repr [] [src]

pub enum Icmpv4Repr<'a> {
    EchoRequest {
        ident: u16,
        seq_no: u16,
        data: &'a [u8],
    },
    EchoReply {
        ident: u16,
        seq_no: u16,
        data: &'a [u8],
    },
    DstUnreachable {
        reason: DstUnreachable,
        header: Ipv4Repr,
        data: &'a [u8],
    },
    // some variants omitted
}

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

Variants

Fields of EchoRequest

Fields of EchoReply

Fields of DstUnreachable

Methods

impl<'a> Repr<'a>
[src]

[src]

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

[src]

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

[src]

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

Trait Implementations

impl<'a> Debug for Repr<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for Repr<'a>
[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<'a> Eq for Repr<'a>
[src]

impl<'a> Clone for Repr<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Copy for Repr<'a>
[src]

impl<'a> Display for Repr<'a>
[src]

[src]

Formats the value using the given formatter. Read more