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§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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