Struct rdkafka::client::EmptyContext
[−]
[src]
pub struct EmptyContext;
An empty context that can be used when no context is needed.
Methods
impl EmptyContext
[src]
fn new() -> EmptyContext
[src]
Trait Implementations
impl Clone for EmptyContext
[src]
fn clone(&self) -> EmptyContext
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for EmptyContext
[src]
fn default() -> EmptyContext
[src]
Returns the "default value" for a type. Read more
impl Context for EmptyContext
[src]
fn log(&self, level: RDKafkaLogLevel, fac: &str, log_message: &str)
[src]
Receives log lines from librdkafka.
fn stats(&self, statistics: Statistics)
[src]
Receives the statistics of the librdkafka client. To enable, the "statistics.interval.ms" configuration parameter must be specified. Read more
fn error(&self, error: KafkaError, reason: &str)
[src]
Receives global errors from the librdkafka client.