Struct rdkafka::config::NativeClientConfig
source · pub struct NativeClientConfig { /* private fields */ }
Expand description
A native rdkafka-sys client config.
Implementations§
source§impl NativeClientConfig
impl NativeClientConfig
sourcepub fn ptr(&self) -> *mut RDKafkaConf
pub fn ptr(&self) -> *mut RDKafkaConf
Returns the pointer to the librdkafka RDKafkaConf structure.
sourcepub fn get(&self, key: &str) -> KafkaResult<String>
pub fn get(&self, key: &str) -> KafkaResult<String>
Gets the value of a parameter in the configuration.
This method reflects librdkafka’s view of the current value of the parameter. If the parameter was overridden by the user, it returns the user-specified value. Otherwise, it returns librdkafka’s default value for the parameter.