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§
sourcefn from_config(_: &ClientConfig) -> KafkaResult<Self>
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.