pub struct AdmittedSet { /* private fields */ }Expand description
Consumer-side dedupe set for at-least-once delivery; persist with the session state.
Bounded: keeps the most recent ADMITTED_SET_CAPACITY ids, evicting the
oldest. Redelivery only ever happens for recently claimed-but-unacked
messages, so a bounded recency window is sufficient — and a long-lived actor
can’t grow it without limit.
Implementations§
Trait Implementations§
Source§impl Clone for AdmittedSet
impl Clone for AdmittedSet
Source§fn clone(&self) -> AdmittedSet
fn clone(&self) -> AdmittedSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AdmittedSet
impl Debug for AdmittedSet
Source§impl Default for AdmittedSet
impl Default for AdmittedSet
Source§fn default() -> AdmittedSet
fn default() -> AdmittedSet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdmittedSet
impl<'de> Deserialize<'de> for AdmittedSet
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 From<AdmittedSet> for Vec<MsgId>
impl From<AdmittedSet> for Vec<MsgId>
Source§fn from(set: AdmittedSet) -> Self
fn from(set: AdmittedSet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AdmittedSet
impl PartialEq for AdmittedSet
Source§fn eq(&self, other: &AdmittedSet) -> bool
fn eq(&self, other: &AdmittedSet) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AdmittedSet
impl Serialize for AdmittedSet
impl StructuralPartialEq for AdmittedSet
Auto Trait Implementations§
impl Freeze for AdmittedSet
impl RefUnwindSafe for AdmittedSet
impl Send for AdmittedSet
impl Sync for AdmittedSet
impl Unpin for AdmittedSet
impl UnsafeUnpin for AdmittedSet
impl UnwindSafe for AdmittedSet
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