pub struct TopicProducerConfig { /* private fields */ }Expand description
Options used to adjust the behavior of the Producer.
Create this struct with TopicProducerConfigBuilder.
Create a producer with a custom config with crate::Fluvio::topic_producer_with_config().
Implementations§
Source§impl TopicProducerConfig
impl TopicProducerConfig
pub fn linger(&self) -> Duration
pub fn batch_size(&self) -> usize
pub fn max_request_size(&self) -> usize
pub fn batch_queue_size(&self) -> usize
pub fn compression(&self) -> Option<Compression>
pub fn timeout(&self) -> Duration
pub fn isolation(&self) -> Isolation
pub fn delivery_semantic(&self) -> DeliverySemantic
pub fn smartmodules(&self) -> &Vec<SmartModuleInvocation>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TopicProducerConfig
impl !RefUnwindSafe for TopicProducerConfig
impl Send for TopicProducerConfig
impl Sync for TopicProducerConfig
impl Unpin for TopicProducerConfig
impl !UnwindSafe for TopicProducerConfig
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