Enum async_nats::jetstream::consumer::AckPolicy
source · #[repr(u8)]
pub enum AckPolicy {
Explicit,
None,
All,
}
Expand description
Determines whether messages will be acknowledged individually, in batches, or never.
Variants§
Explicit
All messages will be individually acknowledged. This is the default.
None
No messages are acknowledged.
All
Acknowledges all messages with lower sequence numbers when a later message is acknowledged. Useful for “batching” acknowledgment.
Trait Implementations§
source§impl<'de> Deserialize<'de> for AckPolicy
impl<'de> Deserialize<'de> for AckPolicy
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more