Struct rdkafka::producer::BaseProducer [] [src]

pub struct BaseProducer<C: ProducerContext> { /* fields omitted */ }

Simple Kafka producer. This producer needs to be polled at regular intervals in order to serve queued delivery report callbacks. This producer can be cheaply cloned to create a new reference to the same underlying producer. Data production should be done using the BaseProducerTopic, that can be created from this producer.

Methods

impl<C: ProducerContext> BaseProducer<C>
[src]

Returns a topic associated to the producer

Polls the producer. Regular calls to poll are required to process the evens and execute the message delivery callbacks.

Trait Implementations

impl<C: ProducerContext> Clone for BaseProducer<C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl FromClientConfig for BaseProducer<EmptyProducerContext>
[src]

Creates a new BaseProducer starting from a configuration.

impl<C: ProducerContext> FromClientConfigAndContext<C> for BaseProducer<C>
[src]

Creates a new BaseProducer starting from a configuration and a context.