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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".