Struct rdkafka::config::TopicConfig
[−]
[src]
pub struct TopicConfig { /* fields omitted */ }Topic configuration.
Methods
impl TopicConfig[src]
fn new() -> TopicConfig
Returns a new TopicConfig.
fn set(&mut self, key: &str, value: &str) -> &mut TopicConfig
Adds a new key-value pair in the topic configuration.
fn finalize(&self) -> TopicConfig
Finalizes the creation of the topic configuration. Useful at the end of a chain of setters, if you need to store the resulting topic configuration before its use.
fn create_native_config(&self) -> KafkaResult<NativeTopicConfig>
Creates a native rdkafka-sys topic configuration.
Trait Implementations
impl Clone for TopicConfig[src]
fn clone(&self) -> TopicConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Default for TopicConfig[src]
fn default() -> TopicConfig
Returns the "default value" for a type. Read more