Expand description
Lenient parser diagnostic stream.
The codec accepts garbage from the wire (so we never silently
lose real-world reflector traffic), but every parser pushes
structured Diagnostic events into a DiagnosticSink. The
consumer chooses what to do with them — log, drop, alert, or
reject the packet.
Structs§
- Null
Sink - Discards every diagnostic. Default for tests and pure-codec callers that don’t want to track parser observations.
- Tracing
Sink - Routes every diagnostic to a
tracing::warn!event. - VecSink
- Captures diagnostics into an in-memory
Vec. Used by tests and bySession::diagnostics()(the user-facing accessor).
Enums§
- Auth
Host Skip Reason - Reason an auth host record was skipped during chunk parsing.
- Callsign
Field - Which callsign field a
Diagnostic::CallsignNonPrintablerefers to. - Diagnostic
- One observable malformation detected by a lenient parser.
Traits§
- Diagnostic
Sink - Sink for
Diagnosticevents emitted by lenient parsers.