pub struct ConsumerGroup {
pub name: String,
pub consumers: HashMap<String, ConsumerState>,
pub last_delivered_seq: u64,
pub idle_timeout: Duration,
}Expand description
A named group of consumers sharing a single CDC stream.
The group maintains a high-watermark (last_delivered_seq) so that
each new read delivers only events that no consumer in the group has
seen yet. Individual consumer state is tracked in ConsumerState.
Fields§
§name: StringHuman-readable group name.
consumers: HashMap<String, ConsumerState>Per-consumer tracking state, keyed by consumer name.
last_delivered_seq: u64Next sequence to deliver (high watermark for the group).
idle_timeout: DurationDuration after which an unacknowledged entry becomes reclaimable.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConsumerGroup
impl RefUnwindSafe for ConsumerGroup
impl Send for ConsumerGroup
impl Sync for ConsumerGroup
impl Unpin for ConsumerGroup
impl UnsafeUnpin for ConsumerGroup
impl UnwindSafe for ConsumerGroup
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