Struct rdkafka::config::NativeClientConfig[][src]

pub struct NativeClientConfig { /* fields omitted */ }

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.