Enum async_nats::jetstream::message::AckKind
source · pub enum AckKind {
Ack,
Nak(Option<Duration>),
Progress,
Next,
Term,
}
Expand description
The kinds of response used for acknowledging a processed message.
Variants§
Ack
Acknowledges a message was completely handled.
Nak(Option<Duration>)
Signals that the message will not be processed now and processing can move onto the next message, NAK’d message will be retried.
Progress
When sent before the AckWait period indicates that work is ongoing and the period should be extended by another equal to AckWait.
Next
Acknowledges the message was handled and requests delivery of the next message to the reply subject. Only applies to Pull-mode.
Term
Instructs the server to stop redelivery of a message without acknowledging it as successfully processed.