Skip to main content

Module io

Module io 

Source
Expand description

The dependency-injected I/O that the runtime needs: it fetches source records, produces sink records, and commits and fetches offsets.

The real broker implementations live in io_broker.rs. Fakes in the tests make StreamTask and StreamThread testable and deterministic without a broker.

Structs§

FetchBatch
A batch of consecutive records from one partition.
FetchedRec
A fetched source record. The timestamp is -1 when the fetcher cannot supply it.

Enums§

IsolationLevel
Fetch isolation level, the Kafka Fetch.isolation_level.

Traits§

BeginTxnGate
The lazy begin-the-transaction gate passed to the stream task’s process_once operation under EOS-v2.
OffsetStore
RecordFetcher
RecordProducer