pub struct PacketHashlist { /* private fields */ }Expand description
Bounded FIFO packet-hash deduplication.
Retains at most max_size unique packet hashes. New unique hashes are
appended in insertion order; when full, the oldest retained hash is evicted.
Re-inserting a retained hash is a no-op and does not refresh its recency.
Implementations§
Source§impl PacketHashlist
impl PacketHashlist
Auto Trait Implementations§
impl Freeze for PacketHashlist
impl RefUnwindSafe for PacketHashlist
impl Send for PacketHashlist
impl Sync for PacketHashlist
impl Unpin for PacketHashlist
impl UnsafeUnpin for PacketHashlist
impl UnwindSafe for PacketHashlist
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