Skip to main content

Module capture

Module capture 

Available on crate features http and inspect and std only.

Structs§

CaptureConfig
Capture admission and optional metadata enrichment. Limits count logical serialized record bytes; a storage backend can independently limit physical bytes. HTTP record metadata must fit within 64 KiB; payload bytes stream separately. These are storage limits, not a process RSS limit. Summaries and typed observations are retained separately, bounded in count by connection/exchange admission; custom observers must bound any variable-sized metadata they attach. Payloads belong in storage.
CaptureConnectionGuard
CaptureDetails
CaptureFilter
Parsed selectors and substring searches. Text patterns use shared storage; native selectors avoid reparsing or formatting every captured exchange.
CaptureHttpLayer
CaptureMetadata
Distinct ownership scopes for captured protocol observations.
CaptureQuery
A bounded view suitable for an API, native GUI, or TUI. A cursor pages older connections.
CaptureSelection
A stable selection that retains its storage and can be read one exchange at a time, without materializing every selected body in memory.
CaptureSnapshot
CaptureStore
CapturedBodySource
Pins the currently committed HTTP body records. Reopening this view always yields the same prefix, even during capture, eviction or clearing the inspector.
CapturedRecordStream
Typed metadata and a reader over the raw payload. Downloads, exporters and protocol consumers can pipe this reader directly without a decode buffer.
ConnectionId
Correlates transport metadata across protocol layers on one connection.
ConnectionQuery
A human-visible connection number, optionally entered with a leading #.
ExchangeCapture
Pins an exchange, its observations and storage while an adapter or reader uses it.
HttpConnectionSummary
HTTP observations on a transport connection.
HttpExchangeId
Correlates an HTTP exchange with its upgraded protocol adapter.
HttpExchangeSummary
HTTP exchange data. Connection observations are obtained through connection_id.
HttpUpgradeCaptureGuard
MarkProtocolLayer
ObserveConnectionLayer
ReplayRequest

Enums§

CapturedBody
FilterValue
A parsed selector. Unknown expressions remain visible without matching data.
ProtocolQuery
StatusQuery
StoredRecord

Traits§

CaptureObserver
Optional enrichment at HTTP head boundaries. Protocol owners supply typed observations through CaptureMetadata; no protocol-specific fields are required.
CapturedRecord
An adapter-owned record. Metadata must fit in 64 KiB; payloads stay raw and stream separately. Implementations should return an existing Bytes handle from payload, without allocating another payload buffer.