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

pub struct FutureProducerContext<C: ClientContext + 'static> { /* fields omitted */ }

The ProducerContext used by the FutureProducer.

This context will use a Future as its DeliveryOpaque and will complete the future when the message is delivered (or failed to).

Trait Implementations

impl<C: ClientContext + 'static> ClientContext for FutureProducerContext<C>[src]

impl<C: Clone + ClientContext + 'static> Clone for FutureProducerContext<C>[src]

impl<C, R> Producer<FutureProducerContext<C>> for FutureProducer<C, R> where
    C: ClientContext + 'static,
    R: AsyncRuntime
[src]

impl<C: ClientContext + 'static> ProducerContext for FutureProducerContext<C>[src]

type DeliveryOpaque = Box<Sender<OwnedDeliveryResult>>

A DeliveryOpaque is a user-defined structure that will be passed to the producer when producing a message, and returned to the delivery method once the message has been delivered, or failed to. Read more

Auto Trait Implementations

impl<C> RefUnwindSafe for FutureProducerContext<C> where
    C: RefUnwindSafe

impl<C> Send for FutureProducerContext<C>

impl<C> Sync for FutureProducerContext<C>

impl<C> Unpin for FutureProducerContext<C> where
    C: Unpin

impl<C> UnwindSafe for FutureProducerContext<C> where
    C: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.