Expand description
Bridge between MetadataRecord and a Kafka [Record] whose value is the
wincode encoding of the record.
Each MetadataRecord maps to exactly one [Record]: key = None,
value = wincode(MetadataRecord). The enum variant index is the record
type, so no separate type tag is carried.
Nothing in krabka writes this shape to the metadata log or sends it to an
observer. The __cluster_metadata log, its snapshots, and the observer
metadata fetch carry Kafka’s KIP-631 ApiMessageAndVersion frame, which
crate::kraft_translate writes and reads.
Enums§
- Kafka
Record Error - Error decoding a
Recordback into aMetadataRecord.
Functions§
- from_
kafka_ record - Decode a Kafka [
Record] back into aMetadataRecord. - to_
kafka_ record - Encode one
MetadataRecordas a Kafka [Record].