pub struct DedupKey(pub(crate) String);Expand description
How a consumer recognises two publications as describing the same thing.
A consumer that batches work may still be holding a message when the broker redelivers it, and has to collapse the two. The key is opaque and only ever compared for equality.
Tuple Fields§
§0: StringTrait Implementations§
impl Eq for DedupKey
impl StructuralPartialEq for DedupKey
Auto Trait Implementations§
impl Freeze for DedupKey
impl RefUnwindSafe for DedupKey
impl Send for DedupKey
impl Sync for DedupKey
impl Unpin for DedupKey
impl UnsafeUnpin for DedupKey
impl UnwindSafe for DedupKey
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.