madsim_rdkafka::config

Trait FromClientConfig

Source
pub trait FromClientConfig: Sized {
    // Required method
    fn from_config<'life0, 'async_trait>(
        _: &'life0 ClientConfig,
    ) -> Pin<Box<dyn Future<Output = KafkaResult<Self>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Create a new client based on the provided configuration.

Required Methods§

Source

fn from_config<'life0, 'async_trait>( _: &'life0 ClientConfig, ) -> Pin<Box<dyn Future<Output = KafkaResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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", so this trait is not object safe.

Implementors§