Expand description

This module is autogenerated. It defines a layout using the [binary_layout] crate based on the following definition:

define_layout!(icmp_packet, BigEndian, {
    packet_type: u8,
    code: u8,
    checksum: u16,
    rest_of_header: [u8; 4],
    data_section: [u8],
});

Structs

Use this as a marker type for using this layout as a nested field within another layout.
The View struct defines the FieldView API. An instance of View wraps a storage (either borrowed or owned) and allows accessors for the layout fields.

Constants

Total size of the layout in number of bytes. This can be None if the layout ends with an open ended field like a byte slice.

Type Definitions

Metadata and Field API accessors for the checksum field
Metadata and Field API accessors for the code field
Metadata and Field API accessors for the data_section field
Metadata and Field API accessors for the packet_type field
Metadata and Field API accessors for the rest_of_header field