Struct rdkafka::producer::FutureProducerContext [] [src]

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

The ProducerContext used by the FutureProducer. This context will use a Future as its DeliveryContext and will complete the future when the message is delivered (or failed to). All other callbacks will be delegated to the wrapped ProducerContext.

Trait Implementations

impl<C: Clone + ProducerContext> Clone for FutureProducerContext<C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<C: ProducerContext> Context for FutureProducerContext<C>
[src]

impl<C: ProducerContext> ProducerContext for FutureProducerContext<C>
[src]

A DeliveryContext is a user-defined structure that will be passed to the base producer when producing a message. The base producer will call the received method on this data once the associated message has been processed correctly. Read more

This method will be called once the message has beed delivered (or failed to). The DeliveryContext will be the one provided by the user when calling send. Read more