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

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

Contains a reference counted producer client. It can be safely cloned to create another reference to the same 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 FromClientConfig for BaseProducer<EmptyProducerContext>
[src]

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

Creates a new BaseProducer starting from a ClientConfig.