pub struct AckIssuer { /* private fields */ }Expand description
Creates acknowledgement handles on pipeline threads.
One issuer per pipeline thread. Within an epoch, a partition must be issued from exactly one issuer (the runtime guarantees this: a partition is owned by exactly one thread) — sequence numbering is issuer-local. Cloning yields an issuer with fresh sequence state for use by another thread and another set of partitions.
Implementations§
Source§impl AckIssuer
impl AckIssuer
Sourcepub fn issue(&mut self, partition: PartitionId, last_offset: i64) -> AckRef
pub fn issue(&mut self, partition: PartitionId, last_offset: i64) -> AckRef
Issue the acknowledgement handle for a new source poll batch whose
highest contained offset is last_offset.
Wait-free: one atomic load, one unbounded send, one allocation for the batch’s shared state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AckIssuer
impl RefUnwindSafe for AckIssuer
impl Send for AckIssuer
impl Sync for AckIssuer
impl Unpin for AckIssuer
impl UnsafeUnpin for AckIssuer
impl UnwindSafe for AckIssuer
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