pub struct DeduplicationConfig {
pub enabled: bool,
pub ttl: Duration,
pub max_entries: usize,
}Expand description
Configuration for message deduplication
Fields§
§enabled: boolWhether deduplication is enabled
ttl: DurationHow long to remember seen packet IDs (default: 5 minutes)
max_entries: usizeMaximum number of packet IDs to track (default: 10000)
Trait Implementations§
Source§impl Clone for DeduplicationConfig
impl Clone for DeduplicationConfig
Source§fn clone(&self) -> DeduplicationConfig
fn clone(&self) -> DeduplicationConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 DeduplicationConfig
impl Debug for DeduplicationConfig
Auto Trait Implementations§
impl Freeze for DeduplicationConfig
impl RefUnwindSafe for DeduplicationConfig
impl Send for DeduplicationConfig
impl Sync for DeduplicationConfig
impl Unpin for DeduplicationConfig
impl UnsafeUnpin for DeduplicationConfig
impl UnwindSafe for DeduplicationConfig
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