pub struct SubscriberConfig { /* private fields */ }
Expand description
Configuration options for a Subscriber
Implementations§
Source§impl SubscriberConfig
impl SubscriberConfig
Sourcepub fn brokers(self, brokers: &str) -> Self
pub fn brokers(self, brokers: &str) -> Self
Initial list of brokers as a CSV list of broker host or host:port
Sourcepub fn group_id(self, group_id: &str) -> Self
pub fn group_id(self, group_id: &str) -> Self
Client group id string. All clients sharing the same group.id belong to the same group.
Sourcepub fn buffer_size(self, buffer_size: usize) -> Self
pub fn buffer_size(self, buffer_size: usize) -> Self
Capacity of ack channel, defaults to 1. Change this to increase consumer throughput.
Sourcepub fn set(self, key: &str, value: &str) -> Self
pub fn set(self, key: &str, value: &str) -> Self
Set a librdkafka config directly, for a list of available configuration, see: configuration
Trait Implementations§
Source§impl Clone for SubscriberConfig
impl Clone for SubscriberConfig
Source§fn clone(&self) -> SubscriberConfig
fn clone(&self) -> SubscriberConfig
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 moreSource§impl Debug for SubscriberConfig
impl Debug for SubscriberConfig
Auto Trait Implementations§
impl Freeze for SubscriberConfig
impl RefUnwindSafe for SubscriberConfig
impl Send for SubscriberConfig
impl Sync for SubscriberConfig
impl Unpin for SubscriberConfig
impl UnwindSafe for SubscriberConfig
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