Struct rdkafka::consumer::base_consumer::PartitionQueue [−][src]
A message queue for a single partition.
Implementations
impl<C> PartitionQueue<C> where
C: ConsumerContext,
[src]
C: ConsumerContext,
pub fn poll<T: Into<Timeout>>(
&self,
timeout: T
) -> Option<KafkaResult<BorrowedMessage<'_>>>
[src]
&self,
timeout: T
) -> Option<KafkaResult<BorrowedMessage<'_>>>
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,
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,
C: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,