pub struct DedupConfig {
pub window_size: usize,
pub ttl: Duration,
}Expand description
Configuration for the deduplication middleware.
Fields§
§window_size: usizeMaximum number of message IDs to track.
ttl: DurationTime-to-live for tracked IDs; entries older than this are purged.
Trait Implementations§
Source§impl Clone for DedupConfig
impl Clone for DedupConfig
Source§fn clone(&self) -> DedupConfig
fn clone(&self) -> DedupConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DedupConfig
impl Debug for DedupConfig
Auto Trait Implementations§
impl Freeze for DedupConfig
impl RefUnwindSafe for DedupConfig
impl Send for DedupConfig
impl Sync for DedupConfig
impl Unpin for DedupConfig
impl UnsafeUnpin for DedupConfig
impl UnwindSafe for DedupConfig
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