pub struct KWProducerConf {
pub config: HashMap<String, String>,
pub log_level: Option<RDKafkaLogLevel>,
pub brokers: String,
pub msg_timeout: Timeout,
pub topic: Option<String>,
pub num_partitions: i32,
pub replication: i32,
}
Fields§
§config: HashMap<String, String>
§log_level: Option<RDKafkaLogLevel>
§brokers: String
§msg_timeout: Timeout
§topic: Option<String>
§num_partitions: i32
§replication: i32
Implementations§
Source§impl KWProducerConf
impl KWProducerConf
pub fn new<B>(brokers: B) -> Self
pub fn set_timeout<T: Into<Timeout>>(self, msg_timeout: T)
pub fn set_config<K, V>(self, config: HashMap<K, V>) -> Self
pub fn append_config<K, V>(self, key: K, value: V) -> Self
pub fn set_log_level(self, log_level: RDKafkaLogLevel) -> Self
pub fn set_topic_conf( self, topic: impl Into<String>, num_partitions: i32, replication: i32, ) -> Self
Trait Implementations§
Source§impl Clone for KWProducerConf
impl Clone for KWProducerConf
Source§fn clone(&self) -> KWProducerConf
fn clone(&self) -> KWProducerConf
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for KWProducerConf
impl RefUnwindSafe for KWProducerConf
impl Send for KWProducerConf
impl Sync for KWProducerConf
impl Unpin for KWProducerConf
impl UnwindSafe for KWProducerConf
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