pub struct Dedupe { /* private fields */ }Expand description
A bounded set of recently-seen msg_ids. Its main job is collapsing the bus’s
at-least-once redelivery (the same message seen twice before it’s acked), which is
a near-term window, so a bounded LRU suffices. It is not sized to cover the full
MAX_PAST_MS window: a replay older than this capacity but still within the past
bound could slip through — an accepted tradeoff under the signed, trusted-tailnet
threat model, in exchange for durable delivery to offline/slow peers.
Implementations§
Auto Trait Implementations§
impl Freeze for Dedupe
impl RefUnwindSafe for Dedupe
impl Send for Dedupe
impl Sync for Dedupe
impl Unpin for Dedupe
impl UnsafeUnpin for Dedupe
impl UnwindSafe for Dedupe
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