#[repr(u8)]pub enum RetentionPolicy {
Limits = 0,
Interest = 1,
WorkQueue = 2,
}
Expand description
RetentionPolicy
determines how messages in a set are retained.
Variants§
Limits = 0
Limits
(default) means that messages are retained until any given limit is reached.
This could be one of messages, bytes, or age.
Interest = 1
Interest
specifies that when all known observables have acknowledged a message it can be removed.
WorkQueue = 2
WorkQueue
specifies that when the first worker or subscriber acknowledges the message it can be removed.
Trait Implementations§
Source§impl Clone for RetentionPolicy
impl Clone for RetentionPolicy
Source§fn clone(&self) -> RetentionPolicy
fn clone(&self) -> RetentionPolicy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RetentionPolicy
impl Debug for RetentionPolicy
Source§impl Default for RetentionPolicy
impl Default for RetentionPolicy
Source§fn default() -> RetentionPolicy
fn default() -> RetentionPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RetentionPolicy
impl<'de> Deserialize<'de> for RetentionPolicy
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
Source§impl PartialEq for RetentionPolicy
impl PartialEq for RetentionPolicy
Source§impl Serialize for RetentionPolicy
impl Serialize for RetentionPolicy
impl Copy for RetentionPolicy
impl Eq for RetentionPolicy
impl StructuralPartialEq for RetentionPolicy
Auto Trait Implementations§
impl Freeze for RetentionPolicy
impl RefUnwindSafe for RetentionPolicy
impl Send for RetentionPolicy
impl Sync for RetentionPolicy
impl Unpin for RetentionPolicy
impl UnwindSafe for RetentionPolicy
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