pub struct AckSet(/* private fields */);Expand description
A fail-safe collection of acknowledgement handles for data that has not been durably written yet (encoded chunks, sink batches).
A bare AckRef resolves Delivered on drop — the right default for
records, where drop means “consumed” (filtered out, skipped by policy,
or written). Collections travelling the sink path are different: there,
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 always safe
under at-least-once — it costs replay, never 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§
§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