pub struct ConsumerConfig {
pub bootstrap_servers: Vec<String>,
pub topic: String,
pub partition: u32,
pub initial_offset: u64,
pub max_bytes: u32,
pub max_wait_ms: u32,
pub token: Option<String>,
pub connect_timeout: Duration,
pub backoff_on_empty: Duration,
}Expand description
Configuration options for an AeroStream consumer.
Fields§
§bootstrap_servers: Vec<String>Broker endpoint addresses.
topic: StringTarget topic to subscribe to.
partition: u32Target partition to consume from.
initial_offset: u64Starting offset for consumption.
max_bytes: u32Maximum bytes per fetch request.
max_wait_ms: u32Maximum long-poll wait time on broker in milliseconds.
token: Option<String>Optional authentication bearer token.
connect_timeout: DurationConnection timeout.
backoff_on_empty: DurationPoll retry backoff duration when empty or broker throttles.
Implementations§
Source§impl ConsumerConfig
impl ConsumerConfig
Sourcepub fn builder() -> ConsumerConfigBuilder
pub fn builder() -> ConsumerConfigBuilder
Create a fluent builder for ConsumerConfig.
Trait Implementations§
Source§impl Clone for ConsumerConfig
impl Clone for ConsumerConfig
Source§impl Debug for ConsumerConfig
impl Debug for ConsumerConfig
Auto Trait Implementations§
impl Freeze for ConsumerConfig
impl RefUnwindSafe for ConsumerConfig
impl Send for ConsumerConfig
impl Sync for ConsumerConfig
impl Unpin for ConsumerConfig
impl UnsafeUnpin for ConsumerConfig
impl UnwindSafe for ConsumerConfig
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