Skip to main content

Module iters

Module iters 

Source
Expand description

Iterator implementations for bgpkit-parser.

This module contains different iterator implementations for parsing BGP data:

  • default: Standard iterators that skip errors (RecordIterator, ElemIterator)
  • fallible: Fallible iterators that return Results (FallibleRecordIterator, FallibleElemIterator)
  • update: Iterators for BGP UPDATE messages (UpdateIterator, FallibleUpdateIterator)

It also contains the trait implementations that enable BgpkitParser to be used with Rust’s iterator syntax.

Re-exports§

pub use default::ElemIterator;
pub use default::RecordIterator;
pub use fallible::FallibleElemIterator;
pub use fallible::FallibleRecordIterator;

Modules§

default
Default iterator implementations that skip errors and return successfully parsed items.
fallible
Fallible iterator implementations that return Results, exposing parsing errors to users.

Structs§

Bgp4MpUpdate
A BGP4MP UPDATE message with associated metadata.
DiagnosticIterator
Iterator over record-level parsing diagnostics.
FallibleRouteIterator
FallibleUpdateIterator
Fallible iterator over BGP announcements that returns parsing errors.
LegacyBgpUpdate
A deprecated MRT Type 5 BGP_UPDATE message with endpoint metadata.
RawRecordIterator
RecoveringElemIterator
Iterator over BGP elements and explicit recovery gaps.
RecoveringRecordIterator
Iterator over parsed MRT records and explicit recovery gaps.
RecoveryConfig
Settings for opt-in MRT framing recovery.
RecoveryError
A framing error for which no recovery boundary was found within the scan window, an I/O failure, or unsupported input.
RecoveryGap
A byte range discarded while restoring MRT record framing.
RouteIterator
TableDumpV2Entry
A TableDumpV2 RIB entry with associated metadata.
UpdateIterator
Iterator over BGP announcements from MRT data.

Enums§

DiagnosticEvent
A record-level parsing outcome for malformed-data investigation.
MrtUpdate
Unified enum representing BGP announcements from different MRT message types.
RecoveryEvent
An item produced by a recovering iterator.
RecoveryEvidence
Evidence used to validate the first record following a recovered gap.