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.
Auto Trait Implementations§
impl Freeze for NativeClientConfig
impl RefUnwindSafe for NativeClientConfig
impl !Send for NativeClientConfig
impl !Sync for NativeClientConfig
impl Unpin for NativeClientConfig
impl UnwindSafe for NativeClientConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more