Module records

Source
Expand description

Utilities for parsing and serializing sequential records.

This module provides utilities for parsing and serializing repeated, sequential records. Examples of packet formats which include such records include IPv4, IPv6, TCP, NDP, and IGMP.

The utilities in this module are very flexible and generic. The user must supply a number of details about the format in order for parsing and serializing to work.

Some packet formats use a type-length-value-like encoding for options. Examples include IPv4, TCP, and NDP options. Special support for these formats is provided by the options submodule.

Modules§

options
Utilities for parsing the options formats in protocols like IPv4, TCP, and NDP.

Structs§

AlignedRecordSequenceBuilder
A builder capable of serializing a sequence of aligned records.
RecordSequenceBuilder
A builder capable of serializing a sequence of records.
Records
A parsed sequence of records.
RecordsBytesIter
An iterator over the records bytes contained inside a Records instance.
RecordsIter
An iterator over the records contained inside a Records instance.
RecordsRaw
An unchecked sequence of records.
TooFewRecordsErr
The error returned when fewer records were found than expected.

Enums§

MeasuredRecord
A type that encapsulates the result of measuring the next record.
ParsedRecord
A type that encapsulates the successful result of a parsing operation.

Traits§

AlignedRecordBuilder
A builder capable of serializing a record with an alignment requirement.
MeasureRecordsImpl
Implemented for RecordsImpl instances that allow peeking at the length of the first record in the buffer.
RecordBuilder
A builder capable of serializing a record.
RecordsContext
The context kept while performing records parsing.
RecordsCounter
A counter used to keep track of how many records are remaining to be parsed.
RecordsImpl
An implementation of a records parser.
RecordsImplLayout
Basic associated types used by a RecordsImpl.
RecordsRawImpl
An implementation of a raw records parser.

Type Aliases§

RecordParseResult
A type that encapsuates the result of a record parsing operation.