pub struct StreamingConsumerConfig {
pub topic_id: u32,
pub max_batch_bytes: u32,
pub start_position: SeekPosition,
pub consumer_group: Option<String>,
pub auto_commit_interval_ms: u64,
}Expand description
Configuration for a streaming consumer
Fields§
§topic_id: u32Topic ID to consume from
max_batch_bytes: u32Maximum bytes per batch (default: 64KB)
start_position: SeekPositionStarting position (default: Beginning)
consumer_group: Option<String>Consumer group ID (for offset tracking)
auto_commit_interval_ms: u64Auto-commit interval in milliseconds (0 = manual commit only)
Implementations§
Source§impl StreamingConsumerConfig
impl StreamingConsumerConfig
pub fn new(topic_id: u32) -> Self
pub fn with_max_batch_bytes(self, bytes: u32) -> Self
pub fn with_start_position(self, position: SeekPosition) -> Self
pub fn with_consumer_group(self, group: impl Into<String>) -> Self
pub fn with_auto_commit_interval(self, interval_ms: u64) -> Self
Trait Implementations§
Source§impl Clone for StreamingConsumerConfig
impl Clone for StreamingConsumerConfig
Source§fn clone(&self) -> StreamingConsumerConfig
fn clone(&self) -> StreamingConsumerConfig
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 StreamingConsumerConfig
impl Debug for StreamingConsumerConfig
Auto Trait Implementations§
impl Freeze for StreamingConsumerConfig
impl RefUnwindSafe for StreamingConsumerConfig
impl Send for StreamingConsumerConfig
impl Sync for StreamingConsumerConfig
impl Unpin for StreamingConsumerConfig
impl UnsafeUnpin for StreamingConsumerConfig
impl UnwindSafe for StreamingConsumerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request