pub struct TrackerConfig {
pub max_connections: usize,
pub max_historic: usize,
pub max_quic_mappings: usize,
pub keep_historic: bool,
}Expand description
Tuning knobs for a ConnectionTracker.
Fields§
§max_connections: usizeMaximum number of concurrent active connections. New connections beyond this limit are dropped (existing ones still update) to bound memory under port scans or connection floods.
max_historic: usizeMaximum number of recently-closed (“historic”) connections retained. Oldest-closed entries are evicted first.
max_quic_mappings: usizeMaximum number of QUIC connection-ID -> connection-key mappings kept for coalescing migrated QUIC connections. Cleared wholesale when exceeded.
keep_historic: boolWhether ConnectionTracker::cleanup archives removed connections into
the historic table. Headless tools that don’t need a closed-connection
view can set this to false to save memory.
Trait Implementations§
Source§impl Clone for TrackerConfig
impl Clone for TrackerConfig
Source§fn clone(&self) -> TrackerConfig
fn clone(&self) -> TrackerConfig
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 TrackerConfig
impl Debug for TrackerConfig
Auto Trait Implementations§
impl Freeze for TrackerConfig
impl RefUnwindSafe for TrackerConfig
impl Send for TrackerConfig
impl Sync for TrackerConfig
impl Unpin for TrackerConfig
impl UnsafeUnpin for TrackerConfig
impl UnwindSafe for TrackerConfig
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