#[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.6.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)