#[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” acknowledgement.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for AckPolicy
impl<'de> Deserialize<'de> for AckPolicy
sourcefn 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
impl Copy for AckPolicy
impl Eq for AckPolicy
impl StructuralEq for AckPolicy
impl StructuralPartialEq for AckPolicy
Auto Trait Implementations
impl RefUnwindSafe for AckPolicy
impl Send for AckPolicy
impl Sync for AckPolicy
impl Unpin for AckPolicy
impl UnwindSafe for AckPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more