pub struct Icmpv6Packet {
    pub typ: u8,
    pub code: u8,
    pub checksum: u16,
    pub message: Icmpv6Message,
}

Fields

typ: u8code: u8checksum: u16message: Icmpv6Message

Implementations

Construct a packet by parsing the provided bytes.

Get this packet serialized to bytes suitable for sending on the wire.

Calculate the checksum for the packet given the provided source and destination addresses.

Fill the checksum for the packet using the given source and destination addresses.

Construct a packet for Packet Too Big messages.

Trait Implementations

Formats the value using the given formatter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.