pub struct Ack { /* private fields */ }Expand description
Confirms that one Change was durably processed downstream
— written to the sink and checkpointed. Returned inside every change.
Each change carries a monotonically increasing sequence number. The
mechanism only advances its durable resume point (for WAL, a replication
slot’s confirmed_flush_lsn) to the highest contiguous confirmed
sequence. Confirming out of order is therefore safe: a gap simply holds the
resume point back until it is filled, and nothing already confirmed is
re-sent.
Dropping an Ack without calling confirm does not
confirm the change. It will be redelivered after a restart — this is the
at-least-once guarantee.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Ack
impl !UnwindSafe for Ack
impl Freeze for Ack
impl Send for Ack
impl Sync for Ack
impl Unpin for Ack
impl UnsafeUnpin for Ack
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