Struct rdkafka::consumer::base_consumer::PartitionQueue[][src]

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

A message queue for a single partition.

Implementations

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

pub fn poll<T: Into<Timeout>>(
    &self,
    timeout: T
) -> Option<KafkaResult<BorrowedMessage<'_>>>
[src]

Polls the partition for new messages.

The timeout parameter controls how long to block if no messages are available.

Remember that you must also call BaseConsumer::poll on the associated consumer regularly, even if no messages are expected, to serve callbacks.

Auto Trait Implementations

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

impl<C> Send for PartitionQueue<C>

impl<C> Sync for PartitionQueue<C>

impl<C> Unpin for PartitionQueue<C>

impl<C> UnwindSafe for PartitionQueue<C> where
    C: RefUnwindSafe

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.