pub struct AckSet(/* private fields */);Expand description
A fail-safe collection of acknowledgment handles for data that has not been durably written yet (encoded chunks, sink batches).
A bare AckRef resolves Delivered on drop, the default for records,
where drop means “consumed” (filtered out, skipped by policy, or written).
On the sink path, drop without an explicit outcome means the data was torn
down (task aborted, queue dropped, worker cancelled), and resolving
Delivered would commit offsets for rows that never reached the sink.
AckSet therefore fails every handle it still holds when dropped; the
happy path calls AckSet::deliver after the durable write. Over-failing
is safe under at-least-once, costing replay rather than loss.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AckSet
impl RefUnwindSafe for AckSet
impl Send for AckSet
impl Sync for AckSet
impl Unpin for AckSet
impl UnsafeUnpin for AckSet
impl UnwindSafe for AckSet
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