Struct rdkafka::consumer::stream_consumer::StreamConsumerContext[][src]

pub struct StreamConsumerContext<C> where
    C: ConsumerContext
{ /* fields omitted */ }

A consumer context wrapper for a stream consumer.

This context will automatically wake up the message stream when new data is available.

This type is not intended to be used directly. The construction of a StreamConsumer automatically wraps the underlying context in this type.

Implementations

impl<C> StreamConsumerContext<C> where
    C: ConsumerContext
[src]

pub fn inner(&self) -> &C[src]

Returns a reference to the inner ConsumerContext used to create this context.

Trait Implementations

impl<C> ClientContext for StreamConsumerContext<C> where
    C: ConsumerContext
[src]

impl<C, R> Consumer<StreamConsumerContext<C>> for StreamConsumer<C, R> where
    C: ConsumerContext
[src]

impl<C> ConsumerContext for StreamConsumerContext<C> where
    C: ConsumerContext
[src]

Auto Trait Implementations

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

impl<C> Send for StreamConsumerContext<C>

impl<C> Sync for StreamConsumerContext<C>

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

impl<C> UnwindSafe for StreamConsumerContext<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, 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.