Struct rdkafka::message::BorrowedHeaders
source · [−]pub struct BorrowedHeaders;
Expand description
A zero-copy collection of Kafka message headers.
Provides a read-only access to headers owned by a Kafka consumer or producer
or by an OwnedHeaders
struct.
Implementations
Clones the content of BorrowedHeaders
and returns an OwnedHeaders
that can outlive the consumer.
This operation requires memory allocation and can be expensive.
Trait Implementations
Gets the specified header, where the first header corresponds to index
0. If the index is out of bounds, returns None
. Read more