Trait rdkafka::config::FromClientConfig

source ·
pub trait FromClientConfig: Sized {
    // Required method
    fn from_config(_: &ClientConfig) -> KafkaResult<Self>;
}
Expand description

Create a new client based on the provided configuration.

Required Methods§

source

fn from_config(_: &ClientConfig) -> KafkaResult<Self>

Creates a client from a client configuration. The default client context will be used.

Object Safety§

This trait is not object safe.

Implementors§