Struct rdkafka::config::NativeClientConfig [−][src]
A native rdkafka-sys client config.
Implementations
impl NativeClientConfig
[src]
pub fn ptr(&self) -> *mut RDKafkaConf
[src]
Returns the pointer to the librdkafka RDKafkaConf structure.
pub fn ptr_move(self) -> *mut RDKafkaConf
[src]
Returns the pointer to the librdkafka RDKafkaConf structure. This method should be used when the native pointer is intended to be moved. The destructor won't be executed automatically; the caller should take care of deallocating the resource when no longer needed.
pub fn get(&self, key: &str) -> KafkaResult<String>
[src]
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 RefUnwindSafe for NativeClientConfig
[src]
impl !Send for NativeClientConfig
[src]
impl !Sync for NativeClientConfig
[src]
impl Unpin for NativeClientConfig
[src]
impl UnwindSafe for NativeClientConfig
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,