pub struct PendingFlowsConfig {
pub max_pending_flows: usize,
pub max_entries_per_template: usize,
pub max_entry_size_bytes: usize,
pub ttl: Option<Duration>,
}Expand description
Configuration for pending flow caching.
When enabled, flows that arrive before their template are cached. When the template later arrives, cached flows are automatically re-parsed and included in the output.
Disabled by default; enable via the builder pattern.
Fields§
§max_pending_flows: usizeMaximum number of template IDs to track in the LRU pending cache.
max_entries_per_template: usizeMaximum number of pending flow entries per template ID. Prevents unbounded memory growth from a flood of data for a single unknown template.
max_entry_size_bytes: usizeMaximum size in bytes of a single pending flow entry’s raw data. Entries exceeding this limit are dropped to prevent memory exhaustion from oversized flowset bodies. Default: 65535 (u16::MAX).
ttl: Option<Duration>TTL for pending flows. None means pending flows never expire
(only evicted by LRU or per-template cap).
Implementations§
Trait Implementations§
Source§impl Clone for PendingFlowsConfig
impl Clone for PendingFlowsConfig
Source§fn clone(&self) -> PendingFlowsConfig
fn clone(&self) -> PendingFlowsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more