pub struct ConsumerState {
pub last_acked_seq: u64,
pub pending: VecDeque<PendingEntry>,
pub needs_resync: bool,
}Expand description
Mutable state for one consumer within a ConsumerGroup.
Fields§
§last_acked_seq: u64Highest sequence number that has been acknowledged.
pending: VecDeque<PendingEntry>Ordered queue of entries delivered but not yet acknowledged.
needs_resync: boolSet to true when a gap is detected, indicating the consumer
missed events and may need to reconcile externally.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConsumerState
impl RefUnwindSafe for ConsumerState
impl Send for ConsumerState
impl Sync for ConsumerState
impl Unpin for ConsumerState
impl UnsafeUnpin for ConsumerState
impl UnwindSafe for ConsumerState
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