#[non_exhaustive]pub enum Retry {
Topic(String),
SeekBack,
Drop,
}Expand description
What nack(true) does on this subscription (see
KafkaTopic::retry).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Topic(String)
Republish the message to this topic (stamping RETRY_COUNT_HEADER), then settle the
original offset. Republish-first ordering makes a crash between the two steps a
duplicate, never a loss.
SeekBack
Seek the partition back to the message’s offset and re-consume it in place. Redelivery is immediate, but everything after the offset on that partition replays too (at-least-once duplicates), and the delivery count only survives within the session.
Drop
Treat nack(true) like the drop path (dead-letter when configured, settle otherwise).
Trait Implementations§
impl Eq for Retry
impl StructuralPartialEq for Retry
Auto Trait Implementations§
impl Freeze for Retry
impl RefUnwindSafe for Retry
impl Send for Retry
impl Sync for Retry
impl Unpin for Retry
impl UnsafeUnpin for Retry
impl UnwindSafe for Retry
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