Struct rdkafka::consumer::EmptyConsumerContext
[−]
[src]
pub struct EmptyConsumerContext;
An empty consumer context that can be user when no context is needed.
Trait Implementations
impl Clone for EmptyConsumerContext
[src]
fn clone(&self) -> EmptyConsumerContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Context for EmptyConsumerContext
[src]
fn log(&self, level: RDKafkaLogLevel, fac: &str, log_message: &str)
Receives log lines from librdkafka.
fn stats(&self, statistics: Statistics)
Receives the statistics of the librdkafka client. To enable, the "statistics.interval.ms" configuration parameter must be specified. Read more
impl ConsumerContext for EmptyConsumerContext
[src]
fn rebalance(&self,
native_client: &NativeClient,
err: RDKafkaRespErr,
partitions_ptr: *mut RDKafkaTopicPartitionList)
native_client: &NativeClient,
err: RDKafkaRespErr,
partitions_ptr: *mut RDKafkaTopicPartitionList)
Implements the default rebalancing strategy and calls the pre_rebalance
and post_rebalance
methods. If this method is overridden, it will be responsibility of the user to call them if needed. Read more
fn pre_rebalance(&self, _rebalance: &Rebalance)
Pre-rebalance callback. This method will run before the rebalance and should terminate its execution quickly. Read more
fn post_rebalance(&self, _rebalance: &Rebalance)
Post-rebalance callback. This method will run after the rebalance and should terminate its execution quickly. Read more