Expand description
Curated imports for pipeline assemblies: one use etl::prelude::*;
brings in the builder, chain entry points, and the types every
assembly touches.
Connector constructors are deliberately excluded — import those from
their feature-gated modules (kafka, [clickhouse], [avro]).
Additions to this module are semver-additive; nothing is ever removed.
Structs§
- Chain
Ctx - Per-thread wiring handed to the chain factory — everything the terminal
.sink(...)stage needs, so assemblies stop threading queues, budget, and the pipeline name by hand. - Chunk
Config - Tuning for the terminal stage’s per-shard chunking.
- Exit
Report - Outcome of
PipelineRuntime::run. - KeyHash
Router - Default router: key hash modulo shards, falling back to the source partition for keyless records (keeps a partition’s keyless records together and the distribution stable).
- Owned
- Family for record types that do not borrow (owned payloads).
- Partition
Id - Identifier of a source partition (dense, source-assigned).
- Pipeline
- The pipeline builder — see the module docs for the full picture.
- Pipeline
Config - Root of a pipeline’s configuration file.
- Pipeline
Runtime - One pipeline process: source, per-thread chains, and a sink, assembled
per
docs/DESIGN.md§ Process anatomy. - Runtime
Options - Knobs that are not part of the user-facing YAML (loop granularities, test hooks). The defaults suit production; tests shrink the timings.
- Shutdown
Handle - Triggers a graceful drain from anywhere (tests, custom signal wiring).
- Sink
Options - Sink wiring knobs that live outside connector config.
- Sink
Parts - The decomposed sink. Construct with
SinkParts::newand refine with thewith_*methods (the struct is#[non_exhaustive]; fields may be added without breaking implementors). - Sink
Pool Config - Complete sink worker-pool configuration.
Enums§
- Build
Error - Error assembling a pipeline (cold path, before anything runs).
- Error
Policy - What to do when a record fails in a stage.
- Exit
State - Terminal state of a pipeline run.
- LogFormat
- Output format for logs.
- Pipeline
Error - Error from
Pipeline::run: assembly or startup failure.
Traits§
- RecFamily
- Maps a payload-buffer lifetime to the deserialized record type.
- Sink
Bundle - A sink ready for assembly: the writer, the shard/replica topology, pool tuning, and optional metadata (metric labels, readiness probe).
Functions§
- chain
- Start a chain from a deserializer producing family
F. - chain_
owned - Start a chain from a deserializer producing owned records
T.