Enum async_nats::jetstream::stream::RetentionPolicy
source · #[repr(u8)]
pub enum RetentionPolicy {
Limits,
Interest,
WorkQueue,
}
Expand description
RetentionPolicy
determines how messages in a set are retained.
Variants§
Limits
Limits
(default) means that messages are retained until any given limit is reached.
This could be one of messages, bytes, or age.
Interest
Interest
specifies that when all known observables have acknowledged a message it can be removed.
WorkQueue
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<RetentionPolicy> for RetentionPolicy
impl PartialEq<RetentionPolicy> for RetentionPolicy
source§fn eq(&self, other: &RetentionPolicy) -> bool
fn eq(&self, other: &RetentionPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.