Module binary_layout::example::icmp_packet[][src]

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

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.

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