Expand description
Shared admin/IO helpers used by replicator engine tasks.
All functions return Result<_, String> and map client errors with
.map_err(|e| e.to_string()), so callers stay wire-error-agnostic.
Functions§
- ensure_
compacted_ topic - Ensure a compacted topic exists with one partition and the default replica count.
- ensure_
compacted_ topic_ with_ policy - Ensure a compacted topic using the deployment’s client resource policy.
- ensure_
compacted_ topic_ with_ replication_ factor - Ensure a compacted topic with an explicit replication factor.
- ensure_
topic - Ensure
topicexists with the given parameters. An already-exists response counts as success. - ensure_
topic_ with_ policy - Ensure a topic using the deployment’s client resource policy.
- ensure_
topic_ with_ replication_ factor - Ensure a topic with an explicit replication factor.
- read_
all - Errors
- read_
all_ with_ policy - Drain a topic using the deployment’s client resource policy.
- read_
last_ value_ for_ key - Return the value bytes of the last record whose key equals
key. - read_
last_ value_ for_ key_ with_ policy - Read a key using the deployment’s client resource policy.
Type Aliases§
- RawRecord
- Drain all records from
topicfrom the earliest offset. Returns(key, value)pairs in order.