pub type SeenMsgIds = Arc<Mutex<(VecDeque<i64>, HashSet<i64>)>>;Expand description
Shared, persistent dedup ring for server msg_ids.
VecDeque provides O(1) push/pop for eviction order; HashSet provides
O(1) membership checks, replacing the previous O(n) VecDeque::contains
scan that became a serialisation bottleneck under 12 concurrent workers.
Outlives individual EncryptedSession objects so that replayed frames
from a prior connection cycle are still rejected after reconnect.
Aliased Typeยง
pub struct SeenMsgIds { /* private fields */ }