Struct sea_streamer_kafka::KafkaProducerOptions
source ยท pub struct KafkaProducerOptions { /* private fields */ }
Implementationsยง
sourceยงimpl KafkaProducerOptions
impl KafkaProducerOptions
sourcepub fn set_compression_type(&mut self, v: CompressionType) -> &mut Self
pub fn set_compression_type(&mut self, v: CompressionType) -> &mut Self
Set the compression method for this producer
pub fn compression_type(&self) -> Option<&CompressionType>
sourcepub fn set_transaction_timeout(&mut self, v: Duration) -> &mut Self
pub fn set_transaction_timeout(&mut self, v: Duration) -> &mut Self
Set the timeout used in all transactions for this producer
pub fn transaction_timeout(&self) -> Option<&Duration>
sourcepub fn add_custom_option<K, V>(&mut self, key: K, value: V) -> &mut Self
pub fn add_custom_option<K, V>(&mut self, key: K, value: V) -> &mut Self
Add a custom option. If you have an option you frequently use, please consider open a PR and add it to above.
pub fn custom_options(&self) -> impl Iterator<Item = (&str, &str)>
Trait Implementationsยง
sourceยงimpl Clone for KafkaProducerOptions
impl Clone for KafkaProducerOptions
sourceยงfn clone(&self) -> KafkaProducerOptions
fn clone(&self) -> KafkaProducerOptions
Returns a copy 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 moresourceยงimpl Debug for KafkaProducerOptions
impl Debug for KafkaProducerOptions
sourceยงimpl Default for KafkaProducerOptions
impl Default for KafkaProducerOptions
sourceยงfn default() -> KafkaProducerOptions
fn default() -> KafkaProducerOptions
Returns the โdefault valueโ for a type. Read more
impl ProducerOptions for KafkaProducerOptions
Auto Trait Implementationsยง
impl Freeze for KafkaProducerOptions
impl RefUnwindSafe for KafkaProducerOptions
impl Send for KafkaProducerOptions
impl Sync for KafkaProducerOptions
impl Unpin for KafkaProducerOptions
impl UnwindSafe for KafkaProducerOptions
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