Trait rdkafka::config::FromClientConfigAndContext[][src]

pub trait FromClientConfigAndContext<C: ClientContext>: Sized {
    fn from_config_and_context(_: &ClientConfig, _: C) -> KafkaResult<Self>;
}
Expand description

Create a new client based on the provided configuration and context.

Required methods

Creates a client from a client configuration and a client context.

Implementors

Creates a new StreamConsumer starting from a ClientConfig.

Creates a new BaseConsumer starting from a ClientConfig.