Trait rdkafka::config::FromClientConfigAndContext
[−]
[src]
pub trait FromClientConfigAndContext<C: Context>: Sized { fn from_config_and_context(&ClientConfig, C) -> KafkaResult<Self>; }
Create a new client based on the provided configuration and context.
Required Methods
fn from_config_and_context(&ClientConfig, C) -> KafkaResult<Self>
Implementors
impl<C: ConsumerContext> FromClientConfigAndContext<C> for BaseConsumer<C>
impl<C: ConsumerContext> FromClientConfigAndContext<C> for StreamConsumer<C>
impl<C: ProducerContext> FromClientConfigAndContext<C> for BaseProducer<C>
impl<C: ProducerContext> FromClientConfigAndContext<C> for FutureProducer<C>