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§
- Aligned
Record Sequence Builder - A builder capable of serializing a sequence of aligned records.
- Record
Sequence Builder - A builder capable of serializing a sequence of records.
- Records
- A parsed sequence of records.
- Records
Bytes Iter - An iterator over the records bytes contained inside a
Records
instance. - Records
Iter - An iterator over the records contained inside a
Records
instance. - Records
Raw - An unchecked sequence of records.
- TooFew
Records Err - The error returned when fewer records were found than expected.
Enums§
- Measured
Record - A type that encapsulates the result of measuring the next record.
- Parsed
Record - A type that encapsulates the successful result of a parsing operation.
Traits§
- Aligned
Record Builder - A builder capable of serializing a record with an alignment requirement.
- Measure
Records Impl - Implemented for
RecordsImpl
instances that allow peeking at the length of the first record in the buffer. - Record
Builder - A builder capable of serializing a record.
- Records
Context - The context kept while performing records parsing.
- Records
Counter - A counter used to keep track of how many records are remaining to be parsed.
- Records
Impl - An implementation of a records parser.
- Records
Impl Layout - Basic associated types used by a
RecordsImpl
. - Records
RawImpl - An implementation of a raw records parser.
Type Aliases§
- Record
Parse Result - A type that encapsuates the result of a record parsing operation.